决定安装最新的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.....
在此之后没有其他事情发生。
我通过HomeBrew安装了这个软件包,但在运行rvm之后没有任何改变。
答案 0 :(得分:0)
所以我解决了这个问题。我刚刚删除了MacPorts =)并且所有软件包都被识别为已经通过Homebrew安装。
答案 1 :(得分:0)
问题可能是你通过调用sudo
来混淆rvm - 你不应该这样做,除非明确要求它(如在错误信息中:运行“sudo ...”来修复某些东西),同样适用于rvmsudo
,仅在明确请求时才使用它。
RVM将在需要时显示sudo
的密码提示,并且仅针对需要它的命令升级权限 - 通常是与包管理器进行交互。