Had similar issues on a new OS X Mountain Lion install.
Followed tutorial http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ until step 6 when I got this error. Also checked log file which didn't indicate exact problem.
Decided to verify if RVM had installed.
type rvm | head -1
Didn't show rvm as being 'sourced'. So, opened new terminal to check. Sure enough, new terminal returned rvm is a function
. So, closed older terminal session & re-copied install rvm script into new terminal.
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable
After this, all went well. Did not do any manual installs. One slight detour I took was to brew install pkg-config
after reading the post Error installing any ruby version with RVM on OSX just before running the above curl command again - this was likely unnecessary too.
Then,
rvm use 2.0.0 --default
You might get a message:
>A RVM version 1.20.11 (stable) is installed yet 1.20.10 (stable) is loaded.
Please do one of the following:
* 'rvm reload'
* open a new shell
* 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
* 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.
Type dvm reload
or one of the other options. Verify with dvm -v
, ruby -v