Ruby [求助] Mac 中 rvm install ruby1.9.3 报错。请问该怎么办呢?

whitecrow · 2013年02月25日 · 最后由 whitecrow 回复于 2013年02月25日 · 2789 次阅读

Xcode version: 4.6 rvm version: 1.18.11

错误信息: Error running './configure --disable-install-doc --prefix=/Users/xxx/.rvm/rubies/ruby-1.9.3-p385 --with-opt-dir=/Users/xxx/.rvm/usr --disable-shared', please read /Users/xxx/.rvm/log/ruby-1.9.3-p385/configure.log There has been an error while running configure. Halting the installation.

log 信息 (/Users/xxx/.rvm/log/ruby-1.9.3-p385/configure.log):

[2013-02-25 21:37:47] ./configure checking build system type... x86_64-apple-darwin12.2.1 checking host system type... x86_64-apple-darwin12.2.1 checking target system type... x86_64-apple-darwin12.2.1 checking whether the C compiler works... no configure: error: in /Users/liushihao/.rvm/src/ruby-1.9.3-p385': configure: error: C compiler cannot create executables Seeconfig.log' for more details

(按照这个 http://mjason.github.com/blog/2013/02/21/mac-os-10-dot-8-de-rvmzhu-yi-shi-xiang/ 下载了 apple-gcc42,但不起作用)

而且 rvm get stable 的时候到 “Downloading RVM from wayneeseguin branch stable” 就卡住,没速度了。 然后也报错: Could not update RVM, get some help at #rvm IRC channel at freenode servers.

#2 楼 @hooopo 非常感谢,虽然还不行(“You requested building with 'clang' but it is not in your path.”),不过找到思路了。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号