rvm

Cron + whenever not working with RVM

浪子不回头ぞ 提交于 2019-12-04 15:54:43
I am using RVM environment. RUby version : 2.1.2 rails : 4.1.1 schedule.rb : every 1.minute do runner "note.send_mail" end I used whenever --update-crontab to update the cron tab. when I check the jobs using crontab -l it shows up as below with no proper time set up. and the cron job does not work. * * * * * /bin/bash -l -c 'cd /Desktop/folder1/blog2 && bin/rails runner -e production '\''note.send_mail'\''' Can some one help me out fix this. Thanks! Go to your ~/.rvmrc file and add the following: rvm_trust_rvmrcs_flag=1 Then whenever --update-crontab again. According to the README of whenever

Unable to install Ruby with RVM

久未见 提交于 2019-12-04 14:27:55
问题 I'm having trouble installing Ruby with RVM, and this one has me stumped. I'm running on OS Mavericks, with the latest XCode and xcode command line tools. I have a (to my knowledge) identical set up on another machine with no problems. RVM appeared to install with no problems. Upon an attempt to rvm install 2.1, I received the following error message: ruby-2.1.1 - #removing src/ruby-2.1.1.. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64

Error running 'make -j2' when installing RVM

被刻印的时光 ゝ 提交于 2019-12-04 14:01:48
问题 I'm following this tutorial on setting up Rails on your Mac : http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ When I get to Step 6: Install RVM with Ruby 1.9.3 , and run curl -L https://get.rvm.io | bash -s stable --ruby to install RVM, I get the following error : Error running 'make -j2', please read ~/.rvm/log/ruby-1.9.3-p385/make.log There has been an error while running make. Halting the installation. In make.log, here is what it generated : regparse.c

Lion: Problem with RVM installing rubies - problem related to openssl

落爺英雄遲暮 提交于 2019-12-04 13:26:44
问题 I'm desparate, fuddling with the following problem for two(!!) days now w/o a solution. After an update to Lion I wanted to install additional rubies using the most recent version of rvm. Here's what happens when I call bundler afterwards: /Users/felix/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': dlopen(/Users/janroesner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/x86_64-darwin11.1.0/digest/sha1.bundle, 9): Symbol not found: _SHA1_Init

Fish RVM Use error

拥有回忆 提交于 2019-12-04 12:59:43
So I installed fish and oh-my-fish, and when i want to use rvm I get this error: ➜ avalancha git:(services) ✗ rvm use 2.1.0 Using /home/matias/.rvm/gems/ruby-2.1.0 fish: The '$' character begins a variable name. The character '{', which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'. /home/matias/.config/fish/functions/rvm.fish (line 2): begin; set -xg rvm_bin_path "/home/matias/.rvm/bin" ; set -xg GEM_HOME "/home/matias/.rvm/gems/ruby-2.1.0" ;

Why do I get a Readline error when trying to start rails console?

我的梦境 提交于 2019-12-04 12:40:37
UPDATE: I probably messed up my system while trying solutions found somewhere else. I started from scratch and Ruby 1.9.3 installed without a hitch. Now to try to get ree-1.8.7 to play nice alongside... I'm trying to install Ruby 1.9.3 using RVM on Kubuntu (11.10 I believe). I've been having plenty of issues with Readline so far, but found the answer to all but this one. I installed Ruby 1.9.3 this way: rvm install 1.9.3 # Install of ruby-1.9.3-p0 - #complete cd ~/.rvm/src/ruby-1.9.3-p0/ext/readline/ ~/.rvm/src/ruby-1.9.3-p0/ext/readline $ ../../ruby extconf.rb --with-editline-dir="/usr" -

RVM With JRuby 1.7.0 “Unknown Ruby Interpreter”

时光总嘲笑我的痴心妄想 提交于 2019-12-04 12:34:39
问题 I setup a basic Rails application with the following Gemfile: source 'https://rubygems.org' ruby '1.9.3', engine: 'jruby', engine_version: '1.7.0' gem 'rails', '3.2.8' Whenever I change into the project directory I get the following message: Unknown ruby interpreter version: '1.9.3,engine:jruby,engine_version:1.7.0'. I'm running RVM 1.16.17 and have installed 'jruby-1.7.0'. Is my Gemfile engine misconfigued or do I need to change something in RVM? 回答1: RVM has limited support of the ruby

Zsh `which rvm` or `which gem` returns the function contents instead of the path

谁都会走 提交于 2019-12-04 12:15:47
问题 I've never had this problem before with my other machines but for some reason in ZSH whenever I type which gem or which rvm I get the function contents: gem () { local result command gem "$@" result="$?" hash -r return $result } instead of it's path. For the life of me I can not figure out why this is happening. If I switch over to bash I do not have these problems. 回答1: This is normal behavior for zsh. The which built-in is equivalent to whence -c , which shows the definitions of functions.

uninitialized constant Bundler (NameError) with rails 3

痞子三分冷 提交于 2019-12-04 12:15:26
When I try to run some rspec test cases I'm getting this error I'm using linux rails 3.0.0, ruby 1.9.2 (with RVM) config/boot.rb:8: uninitialized constant Bundler (NameError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' .. But when do a gem list , it shows both builder (2.1.2) bundler (1.0.10) so what can be the problem? Rubyist Just update your bundler, in latest version such issue is resolved. 'gem install bundler' and then 'bundler install' If you find again error, then

How can I get rid of something running on every new terminal session?

喜你入骨 提交于 2019-12-04 12:12:20
问题 I am using Lion. I have an error that outputs on every new terminal session: -bash: __rvm_add_to_path: command not found It's an almost brand new user account.. RVM is installed on the other account on the machine.. ~/.bashrc & ~/.bash_profile are both blank.. the out put of env is: TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/ry/8zsyknmx7dj4_2zzvn1n71500000gn/T/ Apple_PubSub_Socket_Render=/tmp/launch-jsfKPw/Render TERM_PROGRAM_VERSION=303 TERM_SESSION