1

我正在尝试使用以下步骤在我的 Mac OS X 10.8 上安装 Ruby 2.0 http://www.interworks.com/blogs/ckaukis/2013/03/05/installing-ruby-200-rvm-and-homebrew-mac -os-x-108-山狮

所有步骤都成功完成,直到最后。我跑之后

rvm install 2.0.0

它给了我以下输出:

/Users/aaron/.rvm/src/ruby-2.0.0-p0 has already been removed.
/Users/aaron/.rvm/rubies/ruby-2.0.0-p0 has already been removed.
Searching for binary rubies, this might take some time. No binary
rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. Continuing with
compilation. Please read 'rvm mount' to get more information on binary
rubies. Installing requirements for osx, might require sudo password.
Already up-to-date. Certificates in '/usr/local/etc/openssl/cert.pem'
already are up to date. Installing Ruby from source to:
/Users/aaron/.rvm/rubies/ruby-2.0.0-p0, this may take a while
depending on your cpu(s)... ruby-2.0.0-p0 - #downloading
ruby-2.0.0-p0, this may take a while depending on your connection...
tee: /Users/aaron/.rvm/log/ruby-2.0.0-p0/extract.log: Permission
denied tee: /Users/aaron/.rvm/log/ruby-2.0.0-p0/extract.log:
Permission denied ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to
/Users/aaron/.rvm/src/ruby-2.0.0-p0 Error running
'__rvm_package_extract
/Users/aaron/.rvm/archives/ruby-2.0.0-p0.tar.bz2
/Users/aaron/.rvm/tmp/rvm_src_856', please read
/Users/aaron/.rvm/log/ruby-2.0.0-p0/extract.log There has been an
error while trying to extract the source. Halting the installation.
There has been an error fetching the ruby interpreter.  Halting the
installation.

看起来它无法提取源。有什么建议可以让我正常工作吗?提前致谢。

4

3 回答 3

4

您可能有权限问题,请尝试:

sudo chown -R $USER: $rvm_path
于 2013-03-27T22:03:40.017 回答
2

再次尝试rvm get head运行安装

于 2013-03-27T21:39:26.360 回答
0

这是一个已知问题。确保您拥有来自https://developer.apple.com/downloads的最新命令行工具并运行 rvm install ruby​​ --with-gcc=clang

我基本上只是从这里重复答案

于 2013-05-05T11:23:00.450 回答