使用Lion上的RVM将1.9.2p180升级到1.9.3时出错

时间:2011-11-15 19:23:07

标签: rvm osx-lion ruby-1.9.3 ruby-1.9.2

运行以下命令时出现此错误:

$ rvm upgrade 1.9.2-p180 1.9.3-p0
Are you sure you wish to upgrade from ruby-1.9.2-p180 to     ruby-1.9.3-p0? (Y/n): Y
Installing new ruby ruby-1.9.3-p0
Installing Ruby from source to: /Users/ericjones/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #extracted to /Users/ericjones/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/ericjones/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/ericjones/.rvm/src
Configuring yaml in /Users/ericjones/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/ericjones/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/ericjones/.rvm/usr
ruby-1.9.3-p0 - #configuring 
ruby-1.9.3-p0 - #compiling 
ERROR: Error running 'make ', please read /Users/ericjones/.rvm/log/ruby-1.9.3-p0/make.log
ERROR: There has been an error while running make. Halting the installation.
ERROR: Unable to install ruby ruby-1.9.3-p0.         Please install it manually to continue.

当我拖尾日志时,我得到以下输出:

installing default stringio libraries
installing default strscan libraries
installing default syck libraries
installing default syslog libraries
linking shared-object tcltklib.bundle
ld: in /usr/local/lib/libiconv.2.dylib, missing required architecture x86_64 in file for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [../../.ext/x86_64-darwin11.2.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2

关于如何前进的任何想法?

2 个答案:

答案 0 :(得分:9)

这为我解决了。

rm /usr/local/lib/libiconv.2.dylib
ln -s /usr/lib/libiconv.2.dylib /usr/local/lib/libiconv.2.dylib

保留了我的XCode 4.2 ......

在此博客上发现: http://hello.keewooi.com/ruby-1-9-3-preview-1-available-now/

答案 1 :(得分:0)

从消息中看起来你的iconv不是为x86_64编译的。

检查rvm notesrvm requirements,了解他们是否对此问题有了更多了解。