0

我试图在我的 Mac OSX Lion 系统中通过 RVM 安装 Ruby 2.0,但我一直遇到这个错误:

Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-head, this may take a while depending on your cpu(s)...
HEAD is now at a653ba0 merge revision(s) 42720: [Backport #8829]
From git://github.com/ruby/ruby
 * branch            ruby_2_0_0 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
ruby-2.0.0-head - #autoreconf........
Error running 'autoreconf',
please read /usr/local/rvm/log/1378234760_ruby-2.0.0-head/autoreconf.log
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-2.0.0-head - #post-configuration
ruby-2.0.0-head - #compiling.
Error running 'make -j8',
please read /usr/local/rvm/log/1378234760_ruby-2.0.0-head/make.log
There has been an error while running make. Halting the installation.

我的 autoconf 版本是 2.68,RVM 是 1.22.3。

以前有人遇到过同样的问题吗?

4

1 回答 1

0

设法解决了这个问题。这是一个perl版本问题。
autoconf 日志说“这个 perl 不是为支持线程而构建的”。我有一个旧版本的 perl:


$ perl --版本

这是为 darwin-multi-2level 构建的 perl 5,版本 12,subversion 3 (v5.12.3)


我做了'sudo port upgrade perl5',成功更新后一切都很顺利。

感谢大家的帮助!:)

于 2013-09-04T07:56:34.263 回答