2014-10-10 252 views
2

我在編程方面真的很新,我一直試圖安裝以安裝Rvm,然後安裝Ruby,但這裏是我嘗試安裝時遇到的問題在我的Mac OS X 10.9安裝RVM:無法在Mac OS X上的gemsets中安裝gem-wrappers gem 10.9

MacBook-Air-de-Lucas:~ lucaslebrun$ \curl -L https://get.rvm.io | bash -s stable 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 184 100 184 0  0 624  0 --:--:-- --:--:-- --:--:-- 625 
100 20819 100 20819 0  0 22711  0 --:--:-- --:--:-- --:--:--  0 
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz 

Upgrading the RVM installation in /Users/lucaslebrun/.rvm/ 
    RVM PATH line found in /Users/lucaslebrun/.profile /Users/lucaslebrun/.bashrc /Users/lucaslebrun/.zshrc. 
    RVM sourcing line found in /Users/lucaslebrun/.bash_profile /Users/lucaslebrun/.zlogin. 
    Installing rvm gem in 1 gemsets./scripts/functions/gemset: line 118: 18872 Trace/BPT trap: 5  "${rvm_ruby_binary}" -rrubygems -e "$gem_spec" 2> /dev/null 
Error running 'command gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc', 
showing last 15 lines of /Users/lucaslebrun/.rvm/log/1412952496_ruby-2.1.3/gem.install.rvm.log 
[2014-10-10 10:48:16] command 
current path: /Users/lucaslebrun/.rvm/src/rvm 
GEM_HOME=/Users/lucaslebrun/.rvm/gems/[email protected] 
PATH=/Users/lucaslebrun/.rvm/gems/[email protected]/bin:/Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin:/Users/lucaslebrun/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin 
GEM_PATH=/Users/lucaslebrun/.rvm/gems/[email protected] 
command(7): command gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc 
+ ./scripts/functions/utility_logging : __rvm_log_dotted() 210 > gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc 
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib 
    Referenced from: /Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin/ruby 
    Reason: image not found 
./scripts/functions/utility_logging: line 210: 18897 Trace/BPT trap: 5  gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc 
. 
    Installing gem-wrappers gem in 1 gemsets./scripts/functions/gemset: line 118: 18934 Trace/BPT trap: 5  "${rvm_ruby_binary}" -rrubygems -e "$gem_spec" 2> /dev/null 
Error running 'command gem install gem-wrappers -v >=1.2.4 --no-ri --no-rdoc', 
showing last 15 lines of /Users/lucaslebrun/.rvm/log/1412952497_ruby-2.1.3/gem.install.gem-wrappers->=1.2.4.log 
[2014-10-10 10:48:17] command 
current path: /Users/lucaslebrun/.rvm/src/rvm 
GEM_HOME=/Users/lucaslebrun/.rvm/gems/[email protected] 
PATH=/Users/lucaslebrun/.rvm/gems/[email protected]/bin:/Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin:/Users/lucaslebrun/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin 
GEM_PATH=/Users/lucaslebrun/.rvm/gems/[email protected] 
command(8): command gem install gem-wrappers -v >=1.2.4 --no-ri --no-rdoc 
+ ./scripts/functions/utility_logging : __rvm_log_dotted() 210 > gem install gem-wrappers -v '>=1.2.4' --no-ri --no-rdoc 
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib 
    Referenced from: /Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin/ruby 
    Reason: image not found 
./scripts/functions/utility_logging: line 210: 18958 Trace/BPT trap: 5  gem install gem-wrappers -v >=1.2.4 --no-ri --no-rdoc 
. 
Upgrade of RVM in /Users/lucaslebrun/.rvm/ is complete. 

然後我嘗試安裝Ruby,但這裏是我得到:

Last login: Fri Oct 10 10:51:02 on ttys000 
MacBook-Air-de-Lucas:~ lucaslebrun$ type rvm | head -n 1 
rvm is a function 
MacBook-Air-de-Lucas:~ lucaslebrun$ rvm use ruby --install --default 
Warning! PATH is not properly set up, '/Users/lucaslebrun/.rvm/gems/ruby-2.1.3/bin' is not at first place, 
     usually this is caused by shell initialization files - check them for 'PATH=...' entries, 
     it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', 
     to fix temporarily in this shell session run: 'rvm use ruby-2.1.3'. 
Using /Users/lucaslebrun/.rvm/gems/ruby-2.1.3 
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib 
    Referenced from: /Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin/ruby 
    Reason: image not found 
MacBook-Air-de-Lucas:~ lucaslebrun$ ruby -v 

我能做些什麼?

+0

該錯誤提示你可以嘗試運行「RVM獲得穩定--auto-點文件」。你有沒有試圖做到這一點? – msergeant 2014-10-10 15:17:04

+0

我得到了同樣的錯誤,嘗試了上述...什麼給了?破碎的二進制版本是什麼意思?如果我禁用它...後果是什麼? – Jwan622 2014-10-20 16:55:22

回答

0

這是打破紅寶石2.1.3的二進制版本,你可以解決它:

rvm reinstall 2.1.3 --disable-binary 
+0

這有效,但爲什麼?破碎的二進制版本是什麼意思? – Jwan622 2014-10-20 16:51:56

+0

加快紅寶石安裝RVM提供編譯紅寶石(二進制文件),其中一個二進制文件被破壞,不幸的是,這個二進制文件是由travis提供的,他們需要它,我將很快創建新的二進制文件,然後它將具有更高的優先級,然後travis一個 – mpapis 2014-10-21 02:30:13

+0

我甚至不知道編譯紅寶石或二進制文件的意思。我需要谷歌很多東西... – Jwan622 2014-10-21 02:43:11