Skip to content

Instantly share code, notes, and snippets.

@kevinrutherford
Created June 18, 2012 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

Just to be clear: the same RVM installation works fine with 1.8.7!

@CoralineAda
Copy link

Here's mine. OS X, but there are some differences, notably you have lots of @project entries, e.g. for your gem path. May be of consequence.

  system:
    uname:       "Darwin Cerberus.vpntrunkclub.com 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"

  rvm:
    version:      "rvm 1.13.8 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
    updated:      "23 days 23 hours 30 minutes 55 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p194"
    date:         "2012-04-20"
    platform:     "x86_64-darwin11.4.0"
    patchlevel:   "2012-04-20 revision 35410"
    full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]"

  homes:
    gem:          "/Users/bantik/.rvm/gems/ruby-1.9.3-p194"
    ruby:         "/Users/bantik/.rvm/rubies/ruby-1.9.3-p194"

  binaries:
    ruby:         "/Users/bantik/.rvm/rubies/ruby-1.9.3-p194/bin/ruby"
    irb:          "/Users/bantik/.rvm/rubies/ruby-1.9.3-p194/bin/irb"
    gem:          "/Users/bantik/.rvm/rubies/ruby-1.9.3-p194/bin/gem"
    rake:         "/Users/bantik/.rvm/gems/ruby-1.9.3-p194@global/bin/rake"

  environment:
    PATH:         "/Users/bantik/.rvm/gems/ruby-1.9.3-p194/bin:/Users/bantik/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/bantik/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/bantik/.rvm/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/mysql/bin:/Users/bantik/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin"
    GEM_HOME:     "/Users/bantik/.rvm/gems/ruby-1.9.3-p194"
    GEM_PATH:     "/Users/bantik/.rvm/gems/ruby-1.9.3-p194:/Users/bantik/.rvm/gems/ruby-1.9.3-p194@global"
    MY_RUBY_HOME: "/Users/bantik/.rvm/rubies/ruby-1.9.3-p194"
    IRBRC:        "/Users/bantik/.rvm/rubies/ruby-1.9.3-p194/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

@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