Can't install Ruby Enterprise Edition with RVM on OSX Lion Can't install Ruby Enterprise Edition with RVM on OSX Lion ruby ruby

Can't install Ruby Enterprise Edition with RVM on OSX Lion


I was able to duplicate your error, just now. This solved it for me:

$ rvm remove ree
$ export CC=/usr/bin/gcc-4.2
$ rvm install --force ree


Using MacPorts you can install Ruby Enterprise Edition, as well as Ruby 1.9.2 for the local user in OS X Lion while having Xcode 4.2 installed by using "Apple's version of gcc 4.2."

Prerequisites:

  • OS X Lion (tested in 10.7.2)
  • Xcode 4.2
  • rvm 1.9.1
  • MacPorts 2.0.3

Execute the following commands:

$ sudo port install apple-gcc42

$ export CC=/opt/local/bin/gcc-apple-42

then

$ rvm install ree

$ rvm use ree

or

$ rvm install 1.9.2

$ rvm use 1.9.2

optionally

$ rvm use ree --default

or

$ rvm use 1.9.2 --default

I hope this helps.

-Joe


No need to install MacPorts or downgrade to 4.1 to get GCC, I used the installer package at https://github.com/kennethreitz/osx-gcc-installer with xCode 4.2 already installed, and had no problem installing 1.9.2-head and 1.9.2-p290.