我正在尝试安装 ruby 1.9.2 或最新版本以使用 cupertino gems
为了安装 ruby,我安装了 3rd 方工具(RVM)
我能够安装 rvm,但是要安装 ruby,我收到 macport 错误
我尝试使用现有的 stackoverflow 问题来解决它,但它并不能清楚地帮助我解决问题
我遵循的步骤是:
从 get.rvm.io 安装 rvm
使用以下命令激活 rvm:
$ source ~/.rvm/scripts/rvm
现在我正在尝试使用以下命令安装 ruby 1.9.2:
$ rvm install 1.9.2
它失败并出现以下错误
*BLR4AUTOMATION2:ruby-1.9.2-p320 admin$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p247.
Continuing with compilation.
Please read 'rvm help mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password.
Password:
DEBUG: Copying /Users/admin/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync rsync: failed to connect to rsync.macports.org:
Connection refused (61) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
while executing "macports::selfupdate [array get global_options]
base_updated"
Error: /opt/local/bin/port: port selfupdate failed:
Error synchronizing MacPorts sources: command execution failed
Requirements installation failed with status: 1.*
我试图关注与它相关的几个线程,但它对我不起作用:
- http://samkhan13.wordpress.com/2012/06/15/make-macports-work-behind-proxy
- 使用 tarball 和其他来源同步 macport
- 试图从我的mac上卸载macports并重新安装,但这也没有用
- 使用 cli 重新安装最新的 xcode
我已在以下位置上传控制台日志:
https ://docs.google.com/document/d/1l_OFbE5d0tliKdnU_gF6Bil75Ek7wJb58h7Da_JTXdQ/edit?usp=sharing
同时,我可以在我的其他 mac 机器上安装 ruby,但不能在构建机器上安装
任何人都可以帮助我使用 rvm 或其他方式设置 ruby(1.9.2 或更高版本)。
提前致谢!!
基山