Skip to content

Instantly share code, notes, and snippets.

@kneath
Created August 18, 2010 06:44
Show Gist options
  • Save kneath/533735 to your computer and use it in GitHub Desktop.
Save kneath/533735 to your computer and use it in GitHub Desktop.

By deafault, I have this:

~ $ rvm info
system:

  system:
    uname:        "Darwin rameater.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386"
    shell:        "bash"
    version:      "3.2.48(1)-release"

  rvm:
    version:      "rvm 0.1.45 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]"

  homes:
    gem:          "not set"
    ruby:         "not set"

  binaries:
    ruby:         "/usr/bin/ruby"
    irb:          "/usr/bin/irb"
    gem:          "/usr/bin/gem"
    rake:         "/usr/local/bin/rake"

  environment:
    PATH:         "/Users/kneath/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/sbin"
    GEM_HOME:     ""
    GEM_PATH:     ""
    BUNDLE_PATH:  ""
    MY_RUBY_HOME: ""
    IRBRC:        ""
    RUBYOPT:      ""
    gemset:       ""

Then I always have to run this to get things to work right (like installing a gem)

~ $ rvm use ruby
info: Using ruby 1.8.7 p249

Using rvm-0.1.45 (the latest)

@telemachus
Copy link

Have you set a default?

rvm --default 1.9.2
# New shell 
which ruby
/Users/telemachus/.rvm/rubies/ruby-1.9.2-rc2/bin/ruby
rvm --default 1.9.1
# new shell
which ruby
/Users/telemachus/.rvm/rubies/ruby-1.9.1-p378/bin/ruby

Also, are you sourcing rvm in your .bashrc file? (I'm guessing yes, since this used to work for you, but maybe not?)

if [ -s $HOME/.rvm/scripts/rvm ]; then
    source $HOME/.rvm/scripts/rvm
fi

Beyond that, I've found wayne and the people in the #rvm room in Freenode very helpful when I've had trouble.

@kneath
Copy link
Author

kneath commented Aug 18, 2010

Apparently my default got erased, setting a new default seems to have worked!

@telemachus
Copy link

Cool - of course immediately rvm 0.1.46 and Ruby 1.9.2-p0 are out. So, now you need to upgrade everything. It's a treadmill.

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