无法在OSX Lion上安装带有RVM的Ruby Enterprise Edition

Far*_*han 44 ruby macos ruby-enterprise-edition rvm osx-lion

这是我到目前为止所做的.

  1. 干净安装OS X Lion
  2. 从App Store下载并安装了最新版本的Xcode.
  3. 安装Git
  4. 安装Homebrew
  5. 已安装的RVM

我现在正在尝试为项目安装Ruby Enterprise Edition rvm install ree并收到以下错误:

$ 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.
Run Code Online (Sandbox Code Playgroud)

我已经尝试CC=/usr/bin/gcc-4.2 rvm install ree了同样的结果.

Jof*_*din 85

我刚刚能够复制你的错误.这解决了我:

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