Geo*_*öck 8 ruby macos install
今天我在Mac OSx 10.9.5上从2.0.0升级到Ruby 2.1.3.结果证明比最初的预期更难.而且由于我浪费了很多时间,我认为我分享我的经验和解决方案,以防其他人也遇到问题.
我安装了xcode +开发人员工具.我本周也更新了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 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
$ rvm -v
rvm 1.25.32 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
$ brew -v
Homebrew 0.9.5
$ git version
git version 1.9.3 (Apple Git-50)
Run Code Online (Sandbox Code Playgroud)
获取最新版本的Ruby并将其用作默认值:
$ rvm install ruby
$ rvm --default use ruby-2.1.3
Run Code Online (Sandbox Code Playgroud)
现在的问题是,如果我试图检查ruby版本,我得到以下内容:
$ rvm --default use ruby-2.1.3
Using /Users/georg/.rvm/gems/ruby-2.1.3
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /Users/georg/.rvm/rubies/ruby-2.1.3/bin/ruby
Reason: image not found
Run Code Online (Sandbox Code Playgroud)
事实上没有什么是真的有效 - 我试图重新加载RVM,重新安装,重新安装和升级自制程序等.
$ brew update && brew upgrade
$ rvm reload
Run Code Online (Sandbox Code Playgroud)
重新安装红宝石
$ rvm install ruby-2.1.3
Already installed ruby-2.1.3.
To reinstall use:
rvm reinstall ruby-2.1.3
Run Code Online (Sandbox Code Playgroud)
还有许多其他解决方案 - 然而,这一切都没有成功.
所以我检查了我是否有/usr/local/lib/libcloog-isl.4.dylib
$ ls -la /usr/local/lib/libcloog-isl.4.dylib
Run Code Online (Sandbox Code Playgroud)
哪个没有回馈......
Geo*_*öck 17
因此,解决该问题的解决方案是运行以下内容:
$ brew rm cloog; brew install cloog
Run Code Online (Sandbox Code Playgroud)
嘎嘎.这一切都突然起作用了!
$ ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
Run Code Online (Sandbox Code Playgroud)