我尝试在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。
之前有没有人遇到过同样的问题?
答案 0 :(得分:0)
成功解决了这个问题。这是一个perl版本的问题 autoconf日志说的是“这个perl不是为支持线程而构建的”。 我有一个旧版本的perl:
$ perl --version
这是为darwin-multi-2level构建的perl 5,版本12,subversion 3(v5.12.3)
我做了'sudo port upgrade perl5',成功更新后一切顺利。
感谢大家的帮助! :)