在Lion上使用RVM安装1.9.3时出错 [英] Error installing 1.9.3 with RVM on Lion

查看:76
本文介绍了在Lion上使用RVM安装1.9.3时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Mac上安装红宝石和滑轨,我已经花了令人尴尬的时间. 我正在使用Lion 10.7.2,Xcode 4.2.1,rvm 1.10.0和gcc 4.2.1 有谁有确保通过rvm安装ruby的方式?或者,在那里

I have burned an embarrassing number of hours trying to install ruby and rails on Mac. I am using Lion 10.7.2, Xcode 4.2.1, rvm 1.10.0, and gcc 4.2.1 Does anyone have a surefire way to install ruby with rvm. Or, is there

rvm install 1.9.2 -C --with-readline-dir=$rvm_path/usr --with-iconv-dir=$rvm_path/usr

产生错误

make[1]: *** [../../.ext/x86_64-darwin11.2.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1

运行

rvm install 1.9.3-p0  --with-gcc=clang  

产生错误

make: *** [.rbconfig.time] Abort trap: 6

只需运行

rvm install 1.9.3

产生错误

make[2]: *** [../../.ext/x86_64-darwin11.2.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2

通过阅读,我在终端中运行以下命令,直到使用目标磁盘模式将libiconv.2.dylib放回原位,我的Mac才会重新启动.

From reading this, I ran the below in the Terminal and my Mac would not restart until I put the libiconv.2.dylib back in place using Target Disk Mode.

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

通过链接,我还删除了先前导致问题的Macfuse安装

From this link, I also removed a previous install of Macfuse which is known to cause problems

我已经两次重新安装Xcode [从应用程序文件夹安装Xcode].

I have reinstalled Xcode twice [Install Xcode from the Application Folder].

还有另一种在Lion上安装Ruby的方法吗? 非常感谢,因为我很快就没想法了
格雷厄姆

Is there another way to get Ruby Installed on Lion? Many thanks as I'm fast running out of ideas
Graham

推荐答案

以下内容对我有用:

$ rvm install 1.9.3 --with-gcc=clang

我是从此页面中获得的.

这篇关于在Lion上使用RVM安装1.9.3时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆