Search code examples
rubymacosrvmosx-lionruby-enterprise-edition

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


Here is what I have done so far.

  1. Clean install of OS X Lion
  2. Downloaded and installed latest version of Xcode from the App Store.
  3. Installed Git
  4. Installed Homebrew
  5. Installed RVM

I am now trying to install Ruby Enterprise Edition for a project with rvm install ree and receive the following error:

$ rvm install ree
ree-1.8.7-2011.03 - #installing
ERROR: Error running './installer -a /Users/FaraazKhan/.rvm/rubies/ree-1.8.7-2011.03
  --no-tcmalloc --dont-install-useful-gems ', please read
  /Users/FaraazKhan/.rvm/log/ree-1.8.7-2011.03/install.log
ERROR: There has been an error while trying to run the ree installer. Halting
  the installation.

I have already tried CC=/usr/bin/gcc-4.2 rvm install ree and with the same result.


Solution

  • 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