首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Macports问题设置RVM

Macports问题设置RVM
EN

Stack Overflow用户
提问于 2013-10-03 17:45:14
回答 2查看 957关注 0票数 0

只要在一台新的笔记本电脑上设置rails和RVM,运行时我就会收到这个错误

代码语言:javascript
复制
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.

当运行这个

代码语言:javascript
复制
sudo rvm install ruby

产生这段代码。

代码语言:javascript
复制
[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命令行工具。以前有人修过这种东西。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-10-04 04:49:00

意识到一定是某些网络配置阻塞了端口。检查您的网络权限或尝试不同的网络。

票数 1
EN

Stack Overflow用户

发布于 2013-10-04 03:47:28

您需要确保该命令可以首先运行:

代码语言:javascript
复制
sudo port -dv selfupdate

这可能是临时网络问题--如果没有按照显示的指令进行操作的话。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19165749

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档