ginnyweasley:~ s66$ sudo port selfupdate
Password:
---> Updating MacPorts base sources using rsync
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed
Run Code Online (Sandbox Code Playgroud)
我试图重新下载macports,它似乎仍然无法正常工作.我也尝试过没有sudo,它仍然无法正常工作.有没有人有这个问题的解决方案?谢谢.
我正在尝试使用RVM在我的iMac上安装ruby.
我首先键入以下内容:
rvm list known
Run Code Online (Sandbox Code Playgroud)
然后,我使用以下行定位我要安装的版本(我正在遵循建议1.9.2而不是基础1.8.7的指南):
rvm install 1.9.2
Run Code Online (Sandbox Code Playgroud)
然后我明白了:
27698AM:~ butler15$ rvm install 1.9.2
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Password:
Run Code Online (Sandbox Code Playgroud)
我输入密码,我得到了这个:
DEBUG: Copying /Users/butler15/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 …Run Code Online (Sandbox Code Playgroud) 我正在尝试在OSX山狮上安装Jekyll.首先,我想安装RVM,然后安装最新的ruby.但是,RVM安装失败,我无法解决问题.任何帮助赞赏
这是我做的:
\curl -L https://get.rvm.io | bash -s stable --ruby)但它在日志中出现错误失败"错误:请安装Xcode和/或运行xcode-select指定其位置."最后一行安装输出包括错误:
安装所需的软件包:autoconf,automake,libtool,pkgconfig,apple-gcc42,libiconv,libyaml,libffi,readline,libxml2,libxslt,libksba,openssl,curl-ca-bundle,sqlite3,zlib,gdbm,ncurses ......
错误运行 'requirements_osx_port_libs_install的automake的autoconf libtool的pkgconfig苹果gcc42 libiconv的libyaml libffi的readline的libxml2的libxslt libksba OpenSSL的卷曲-CA-束sqlite3的zlib的GDBM ncurses的',请阅读/Users/xxx/.rvm/log/1371125385_package_install_autoconf_automake_libtool_pkgconfig_apple-gcc42_libiconv_libyaml_libffi_readline_libxml2_libxslt_libksba_openssl_curl-ca-bundle_sqlite3_zlib_gdbm_ncurses.日志
我打开了错误日志,它说明:
错误:无法执行端口:无法打开文件:/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/autoconf/Portfile
对于其他人来说这可能是显而易见的,但坦率地说,我不确定我应该做些什么来解决它!