0
我正在嘗試安裝ruby。沿線的某處我覺得我打破了一些ruby需求/庫。我不知道我在做什麼。請幫忙。RVM無法在OSX上安裝Ruby 1.9.3 10.8.5
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似乎安裝
$ rvm -v
rvm 1.25.25 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
端口似乎要安裝
$ port version
Version: 2.2.1
嘗試安裝紅寶石失敗
$ 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.
因此,我想推薦的修復,實現什麼是錯我的釀造安裝
$ 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
我決定,我毀了我的dafault OSX紅寶石安裝,並決定通過升級到小牛以解決這個問題。現在GCC和RVM版本回到和以前一樣,我得到這些結果:
$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
$ port version
-bash: port: command not found
我相信我最初的osx ruby安裝被破壞了。我通過升級到小牛解決了這個問題,但仍然存在問題。查看上面更新的問題。 – ProGirlXOXO