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

发布于 2024-12-15 13:56:17 字数 1576 浏览 0 评论 0原文

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

$ 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

記憶穿過時間隧道 2024-12-22 13:56:17

这为我解决了这个问题。

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.keewoi.com/ruby- 1-9-3-preview-1-available-now/

This fixed it for me.

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

kept my XCode 4.2 as well...

found at this blog:
http://hello.keewooi.com/ruby-1-9-3-preview-1-available-now/

心房的律动 2024-12-22 13:56:17

从消息来看,您的 iconv 未针对 x86_64 进行编译。

检查rvm 注释rvm 要求,看看它们是否能更清楚地说明问题。

From the message it looks like your iconv isn't compiled for x86_64.

Check rvm notes and rvm requirements to see if they shed more light on the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文