1
votes

I just started reading Michael Hartl's Ruby on Rails 3 Tutorial. He recommends using the latest version of Ruby, currently 1.9.2. My Mac, an original Intel iMac now running Snow Leopard, has Ruby 1.8.7 installed.

Michael suggests installing the latest versions of Ruby and and Rails using the Ruby Version Manager (RVM). So I went to the RVM site and installed RVM with...

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

It seemed to work. A message popped up in the Terminal thanking me for using RVM.

Following Michael's next instruction, which is to make sure RVM is current:

rvm update --head

which results in -bash: rvm: command not found

A footnote suggests that I might need to install Subversion, so installed it, but I still get the same error message when I run rvm update --head.

Any suggestions? I'd really like to move beyond setup and get to building my Rails app.

1
A really good, and important, step after installing RVM is rvm notes, which will show the recommended dependencies for the OS you are running. If you run that and follow the directions for what files are needed, subsequent installations of Ruby will go a lot more smoothly and should work as expected. This applies to all platforms RVM runs on. - the Tin Man

1 Answers

7
votes

rvm also gave a message after install saying you needed to add a line to your ~/.bashrc (or equivalent):

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

do that, and then type . ~/.bashrc or open a new terminal.