在 Lion 上使用 RVM 将 1.9.2p180 升级到 1.9.3 时出错
运行以下命令时出现此错误:
$ 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
关于如何继续前进的任何想法?
I'm getting this error when running the following command:
$ 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.
When i tail the log i get the following output:
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
Any ideas on how to move forward?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这为我解决了这个问题。
也保留了我的 XCode 4.2...
在这个博客中找到:
http://hello.keewoi.com/ruby- 1-9-3-preview-1-available-now/
This fixed it for me.
kept my XCode 4.2 as well...
found at this blog:
http://hello.keewooi.com/ruby-1-9-3-preview-1-available-now/
从消息来看,您的 iconv 未针对 x86_64 进行编译。
检查
rvm 注释
和rvm 要求
,看看它们是否能更清楚地说明问题。From the message it looks like your iconv isn't compiled for x86_64.
Check
rvm notes
andrvm requirements
to see if they shed more light on the problem.