bash - How Can I get Rake to use RVM's Ruby? -
i'm trying install application on ubuntu uses ruby. installed rvm , ruby 2.0 , ran rake install
, rake tried using older system version of ruby. uninstalled system version , tried running rake again. time said "no such file". how rake use rvm's ruby? below output different commands.
$ rake install sudo bundle --without production staging test levelbuilder --quiet sudo: unable execute /usr/local/bin/bundle: no such file or directory rake aborted! ... /home/ubuntu/../rake_utils.rb:33:in `system' .. /home/ubuntu/../rake_utils.rb:43:in `bundle_install' /home/ubuntu/../rakefile:198:in `block (3 levels) in <top (required)>' .. /home/ubuntu/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `eval' ...
the path , version right:
$ echo $path /home/ubuntu/.rvm/gems/ruby-2.0.0-p643/bin:/home/ubuntu/.rvm/gems/ruby-2.0.0-p643@global/bin:/home/ubuntu/.rvm/rubies/ruby-2.0.0-p643/bin:/home/ubuntu/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games $ ruby -v ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux] $ ruby /home/ubuntu/.rvm/rubies/ruby-2.0.0-p643/bin/ruby
here's .bash_profile:
[[ -s "$home/.profile" ]] && source "$home/.profile" # load default .profile [[ -s "$home/.rvm/scripts/rvm" ]] && source "$home/.rvm/scripts/rvm" # load rvm shell session *as function*
and here's bottom of .bashrc:
export path="$path:$home/.rvm/bin" # add rvm path scripting.
execute source ~/.bash_profile
Comments
Post a Comment