我正在尝试安装ruby 1.9.2或最新版本以使用cupertino gems
为了安装ruby,我安装了第三方工具(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.*
我试图跟随几个相关的线程,但它对我不起作用:
我已将控制台日志上传到以下位置:
https://docs.google.com/document/d/1l_OFbE5d0tliKdnU_gF6Bil75Ek7wJb58h7Da_JTXdQ/edit?usp=sharing
同时我可以在我的其他mac机器上安装ruby,但不能在构建机器上安装 任何人都可以帮助我使用rvm或其他方式设置ruby(1.9.2或更高版本)。
提前致谢!!
基尚
答案 0 :(得分:1)
检查你的路由器上是否有互联网端口,我在大学里尝试过(大量的端口关闭)并遇到同样的问题,再次在我的房子里尝试使用较少的锁定端口并且工作正常。
答案 1 :(得分:0)
确保您可以运行
sudo /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
当你找到合适的标志(代理!)时,你可以确保macports将rsync_options
与macports.conf