2013-07-23 74 views
1

决定安装最新的Ruby 1.9.3。但是在运行命令后,进程冻结。无法通过RVM在Mac上安装Ruby,进程为awk

这里是一个日志:

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

sent 13372 bytes received 9123 bytes 2367.89 bytes/sec 
total size is 4915200 speedup is 218.50 
receiving file list ... done 
base.tar.rmd160 

sent 64 bytes received 635 bytes 199.71 bytes/sec 
total size is 512 speedup is 0.73 
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 

sent 51172 bytes received 1631 bytes 8123.54 bytes/sec 
total size is 53268480 speedup is 1008.82 
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160  /opt/local/var/macports/sources/rsync.macports.org/release/tarballs 
receiving file list ... done 
ports.tar.rmd160 

sent 64 bytes received 636 bytes 107.69 bytes/sec 
total size is 512 speedup is 0.73 
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/ports.tar 
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports 
Adding port science/openbabel 

Total number of ports parsed: 1 
Ports successfully parsed: 1 
Ports failed:   0 
Up-to-date ports skipped: 17387 

---> MacPorts base is already the latest version 
DEBUG: Setting MacPorts sources ownership to root 

The ports tree has been updated. To upgrade your installed ports, you should run 
port upgrade outdated 
Installing required packages: apple-gcc42, libyaml, readline, libksba, curl-ca-bundle..... 

在此之后没有什么事情发生。

我通过HomeBrew安装了这个包,但运行rvm后没有任何改变。

+0

“awk”是否为“frozen”的新词?我猜MacPorts只是忙于编译这些软件包。 apple-gcc42应该花费很长时间来编译。 – echristopherson

回答

0

所以我解决了这个问题。我刚刚删除了MacPorts =)并且所有软件包都被识别为已经通过Homebrew安装。

0

这个问题可能是你通过sudo调用它而感到困惑 - 你不应该这样做,除非明确要求它(例如在错误消息中:运行“sudo ...”来修复某些内容),这同样适用于rvmsudo,只有在明确要求时才使用它。

RVM将在需要时显示sudo的密码提示,并且仅对需要它的命令提升权限 - 通常它与包管理器交互。