RVM/rbenv 安装 1.9.3 时顺利,之后安装 1.9.2 时出错?

rodey · September 08, 2012 · Last by RainFlying replied at September 09, 2012 · 3047 hits

安装 1.9.3 时顺利,之后安装 1.9.2 时出错:

LuomatoMacBook-Pro:~ Rodey$ rvm install 1.9.2 The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please readrvm requirements. LuomatoMacBook-Pro:~ Rodey$ rvm reload RVM reloaded! LuomatoMacBook-Pro:~ Rodey$ rvm requirements

跟你得 XCode 版本有关,1.9.3 已经能在最新版本得 XCode 下编译成功。但是老版本的 Ruby 有一些问题哦。执行 rvm requirements 你会看到更多信息。

rvm install 1.9.2 --with-gcc=clang

OS X 下用 RVM 安装 Ruby 某些版本的话用 LLVM 会被鄙视的, 可以装一个 gcc for Lion,或者伪装成 clang

You need to Sign in before reply, if you don't have an account, please Sign up first.