无法通过RVM在mac上安装Ruby,进程为awk

无法通过RVM在mac上安装Ruby,进程为awk,ruby,rvm,Ruby,Rvm,决定安装最新的Ruby 1.9.3。但在运行该命令后,进程冻结 这是一份日志: 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' t

决定安装最新的Ruby 1.9.3。但在运行该命令后,进程冻结

这是一份日志:

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.....
在这之后,没有其他事情发生


我通过自制软件安装了这个软件包,但在运行rvm后没有任何变化。

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

问题可能是您将rvm与sudo一起调用而混淆了它-您不应该这样做,除非在错误消息中明确要求它:run sudo。。。要修复某些问题,rvmsudo也是如此,仅当显式请求时才使用它


RVM将在需要时显示sudo的密码提示,并仅升级需要它的命令的权限-通常它与package manager交互。

awk是冻结的新词吗?我猜MacPorts正忙于编译这些包。apple-gcc42编译需要很长时间。