2013-03-13 19 views
0

我試圖運行此命令當嘗試安裝捆綁軟件時,我能做些什麼來解決這個錯誤?

gem install bundler 

,但我總是收到此錯誤:

ERROR: Loading command: install (LoadError) 
     cannot load such file -- openssl 
ERROR: While executing gem ... (NoMethodError) 
     undefined method `invoke_with_build_args' for nil:NilClass 

我能做些什麼呢?我已經嘗試過這一點(如在此間指出,'gem install bundle' get something wrong):

rvm pkg install zlib 
rvm remove 2.0.0 
rvm install 2.0.0 

回答

4

這是一個已知的問題 - RubyGems的2.0.0要求的OpenSSL,運行此:

rvm get head 
rvm reinstall 2.0.0 --autolibs=3 
+0

非常感謝!你救了我的一天! – user1420042 2013-03-13 18:16:16

+0

嘿,我剛剛遇到了這個問題。也許你有一個想法... http://stackoverflow.com/questions/15393462/what-c​​an-i-do-about-a-bundlergemfilenotfound-error – user1420042 2013-03-13 18:36:30

+0

@ user1420042:你應該標記這是正確的答案。 – MoMolog 2013-10-24 08:05:21

0

如果你使用Cygwin,嘗試重新安裝使用安裝程序的紅寶石軟件包。 即使它們是相同的版本。

相關問題