安装Ruby出现下列问题,请问怎么解决?

2012-05-13 18:33:44 +08:00
 brickhu
brickhumatoMacBook-Pro:~ brickhu$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/brickhu/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/brickhu/.rvm/src
Configuring yaml in /Users/brickhu/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/brickhu/.rvm/usr" ', please read /Users/brickhu/.rvm/log/ruby-1.9.2-p320/yaml/configure.log
Compiling yaml in /Users/brickhu/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/brickhu/.rvm/log/ruby-1.9.2-p320/yaml/make.log


Database file /Users/brickhu/.rvm/config/packages does not exist.

Installing Ruby from source to: /Users/brickhu/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...

ruby-1.9.2-p320 - #fetching
ruby-1.9.2-p320 - #extracted to /Users/brickhu/.rvm/src/ruby-1.9.2-p320 (already extracted)
ruby-1.9.2-p320 - #configuring
Error running ' ./configure --prefix=/Users/brickhu/.rvm/rubies/ruby-1.9.2-p320 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/brickhu/.rvm/usr ', please read /Users/brickhu/.rvm/log/ruby-1.9.2-p320/configure.log
There has been an error while running configure. Halting the installation.
ls: /Users/brickhu/.rvm/rubies/*/bin/ruby: No such file or directory
brickhumatoMacBook-Pro:~ brickhu$
5034 次点击
所在节点    Ruby
1 条回复
kongruxi
2012-05-13 19:44:13 +08:00
先看看 rvm requirements,安装好依赖,特别是对 Xcode 描述那段

安装时,加上个参数,即:rvm install 1.9.2 --with-gcc=clang

另外,如果对 ruby 版本不是有限制的话,建议安装 1.9.3

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/35725

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX