RVM无法在OSX 10.8.5上安装Ruby 1.9.3

[英]RVM fails to install Ruby 1.9.3 on OSX 10.8.5


I'm trying to install ruby. Somewhere along the line I feel like I broke some ruby requirements / libraries. I have no idea what I'm doing. Please help.

我正在尝试安装ruby。在某个地方,我觉得我打破了一些红宝石要求/库。我不知道我在做什么。请帮忙。

gcc is installed (as well as xcode)

安装了gcc(以及xcode)

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

rvm seems to be installed

rvm好像已经安装好了

$ rvm -v

rvm 1.25.25 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

ports seems to be installed

端口似乎已安装

$ port version
Version: 2.2.1

attempting to install ruby fails

尝试安装ruby失败

$ rvm reinstall 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-p545.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0
ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
Requirements installation failed with status: 1.

So I try the recommended fix and realize something is wrong with my brew installation

所以我尝试了推荐的修复,并意识到我的brew安装有问题

$ brew doctor
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0

I decided that I ruined my dafault osx ruby installation and decided to fix this by upgrading to Mavericks. Now gcc and rvm versions return the same as before and I get these other results:

我决定破坏我的dafault osx ruby​​安装并决定通过升级到Mavericks来解决这个问题。现在gcc和rvm版本和以前一样返回,我得到了其他结果:

$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
$ port version
-bash: port: command not found

1 个解决方案

#1


0  

I suspect that you don't have write access to the /bin directory for the install (ergo the error message); try again with 'sudo rvm reinstall 1.9.3'.

我怀疑你没有对安装的/ bin目录的写访问权(错误消息);再试一次'sudo rvm重新安装1.9.3'。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2014/05/06/1ee3e89d2bbd8254eb41258341694192.html



 
© 2014-2018 ITdaan.com 粤ICP备14056181号