Tuesday, September 21, 2010

Rspec: Command not found

> rvm use 1.9.2@rails3tutorial --default

The sanity check would then be to open up a new terminal window and check which ruby you're using along with your gem directory:

> which ruby
--> /Users/doug/.rvm/rubies/ruby-1.9.2-rc2/bin/ruby
> rvm gemdir
--> /Users/doug/.rvm/gems/ruby-1.9.2-rc2@rails3tutorial

If this is all working, then when you run "gem install blah" (without sudo!) then the blah gem will be installed in the rails3tutorial gem directory.

put this at the top of ~/.bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

$ rvm info

$ rvm install 1.9.2

$ rvm update

$ rvm use 1.9.2

$ rvm list known

http://docs.rubygems.org/read/chapter/10

seems that ruby 1.9.2 is a bit buggy (sqlite3 segmentation fault in ruby 1.9.2), use 1.8.7 for now

No comments: