0

我是 Ruby 新手,正在使用终端。我安装了 rvm,但我似乎无法安装 Ruby 1.9.3。问题似乎与 rsync 和同步端口树有关。我不知道这是什么意思。

我尝试查找其他解决方案,但它们都与 rvm 无关(我能理解。它们都只专注于通过自身自动更新的 macport)。我也看到了关于代理的事情,但我不知道如果这是真的我需要做什么。他们都主要关注macports,并使用诸如“sudo”或-d之类的词,我只是尝试安装Ruby时不知道该怎么做。这是我得到的:

$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p429.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Installing macports............................................................................................................................................................................................................................................................................................................................Password:
.............................................................................................................................................................................................................................................
DEBUG: Copying /Users/Elvis/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
receiving file list ... done
base.tar

sent 58 bytes  received 955032 bytes  272882.86 bytes/sec
total size is 3594240  speedup is 3.76
receiving file list ... done
base.tar.rmd160

sent 58 bytes  received 635 bytes  1386.00 bytes/sec
total size is 512  speedup is 0.74
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.1.3 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.1.3 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar
WARNING: ports.tar failed verification -- update discarded (will try again).
rsync: read errors mapping "/tarballs/ports.tar" (in release): No data available (61)
ports.tar

sent 80 bytes  received 11948570 bytes  682780.00 bytes/sec
total size is 53186560  speedup is 4.45
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(1400) [generator=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 23
Error: Synchronization of the local ports tree failed doing rsync
DEBUG: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /Users/Elvis/.rvm/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
Elviss-MacBook-Pro:~ Elvis$ ./port -d selfupdate
-bash: ./port: No such file or directory

我尝试使用最后在网上看到的一些关键字/答案,这解释了 ./port 行。我已经从 xcode 安装了命令行。安装自制软件会帮助解决这个问题吗?我将不胜感激任何帮助!

4

1 回答 1

-1

确保以下命令正常运行

port selfupdate

然后再试一次

于 2013-06-05T18:55:15.363 回答