Macports问题设置RVM

时间:2013-10-03 17:45:15

标签: ruby-on-rails ruby xcode rvm

只需在新笔记本电脑上设置rails和RVM,我就会在运行时遇到此错误

Error running 'requirements_osx_port_update_system ruby-2.0.0-p247',
please read /Users/#####/.rvm/log/1380821805_ruby-2.0.0-p247/update_system.log
Requirements installation failed with status: 1.

运行时

sudo rvm install ruby

生成此代码。

[2013-10-03 13:36:45] requirements_osx_port_update_system
requirements_osx_port_update_system () 
{ 
    __rvm_try_sudo port -dv selfupdate || return $?
}
current path: /Users/matthewpetitt
command(2): requirements_osx_port_update_system ruby-2.0.0-p247
DEBUG: Copying /Users/matthewpetitt/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: Operation timed out (60)
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: Error synchronizing MacPorts sources: command execution failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: /Users/matthewpetitt/.rvm/bin/port: port selfupdate failed: Error synchronizing     MacPorts sources: command execution failed

我已经安装了Xcode和Xcode命令行工具。任何人之前都会修这样的东西。

2 个答案:

答案 0 :(得分:1)

意识到只是在工作中的一些网络配置必须阻止端口。检查您的网络权限或尝试使用其他网络。

答案 1 :(得分:0)

您需要确保首先运行此命令:

sudo port -dv selfupdate

这可能是临时网络问题 - 如果不遵循显示的说明。