Skip to content

Instantly share code, notes, and snippets.

@kevinrutherford
Created June 18, 2012 17:41
Show Gist options
  • Save kevinrutherford/2949630 to your computer and use it in GitHub Desktop.
Save kevinrutherford/2949630 to your computer and use it in GitHub Desktop.
Bash shell history showing RVM issue on Ubuntu 12.04
$ cd ~
$ rm -rf .rvm
$ curl -L https://get.rvm.io | bash -s stable
# ...
$ type rvm | head -n 1
rvm is a function
$ rvm install 1.8.7
# ...
$ rvm use 1.8.7
# ...
$ rvm install 1.9.3
# ...
$ rvm use 1.9.3
# ...
$ cd project/
Using /home/kevin/.rvm/gems/ruby-1.9.3-p194 with gemset project
$ bundle
/usr/bin/env: ruby_bundler_wrapper: No such file or directory
$ rake -T
/usr/bin/env: ruby_bundler_wrapper: No such file or directory
$ bundle exec rake -T
/usr/bin/env: ruby_bundler_wrapper: No such file or directory
$ rvm info
ruby-1.9.3-p194@project:
system:
uname: "Linux kr-laptop 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.2.24(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.14.2 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
updated: "2 hours 48 minutes 29 seconds ago"
ruby:
interpreter: "ruby"
version: "1.9.3p194"
date: "2012-04-20"
platform: "x86_64-linux"
patchlevel: "2012-04-20 revision 35410"
full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]"
homes:
gem: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project"
ruby: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194"
binaries:
ruby: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/ruby"
irb: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/irb"
gem: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/gem"
rake: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin/rake"
environment:
PATH: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/kevin/.rvm/bin:/home/kevin/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
GEM_HOME: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project"
GEM_PATH: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global"
MY_RUBY_HOME: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194"
IRBRC: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/.irbrc"
RUBYOPT: ""
gemset: "project"
$
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
$ ruby -e 'p "hello"'
"hello"
$ which ruby
/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
$
$ env | grep rvm
rvm_bin_path=/home/kevin/.rvm/bin
GEM_HOME=/home/kevin/.rvm/gems/ruby-1.9.3-p194@project
IRBRC=/home/kevin/.rvm/rubies/ruby-1.9.3-p194/.irbrc
MY_RUBY_HOME=/home/kevin/.rvm/rubies/ruby-1.9.3-p194
rvm_path=/home/kevin/.rvm
rvm_prefix=/home/kevin
PATH=/home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/kevin/.rvm/bin:/home/kevin/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
rvm_version=1.14.2 (stable)
GEM_PATH=/home/kevin/.rvm/gems/ruby-1.9.3-p194@project:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global
$
$ irb
1.9.3-p194 :001 > p 'hello'
"hello"
=> "hello"
1.9.3-p194 :002 >
$
$ rvm use 1.9.3@global
Using /home/kevin/.rvm/gems/ruby-1.9.3-p194 with gemset global
$ gem list
*** LOCAL GEMS ***
bundler (1.1.4)
rake (0.9.2.2)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
$
$ cat ~/.bashrc
#...
source ~/.rvm/scripts/rvm
$
@kevinrutherford
Copy link
Author

kevinrutherford commented Jun 18, 2012 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment