2013-10-05 282 views
8

我通過安裝在路邊的寶石不兼容路邊版本:紅寶石

gem install curb 

但是,當我包括在被要求「遏制」我的Ruby代碼,它提供了以下錯誤

/Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curl.rb:1:in `require'" dlopen(/Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curb_core.bundle, 9): Library not loaded: libcurl.4.dylib (LoadError) 
Referenced from: /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curb_core.bundle 
Reason: Incompatible library version: curb_core.bundle requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0 - /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curb_core.bundle 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curl.rb:1:in `<top (required)>' 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curb.rb:1:in `require' 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/curb-0.8.5/lib/curb.rb:1:in `<top (required)>' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require' 
from /Users/vishrutmehta/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler.rb:132:in `require' 
from /Users/vishrutmehta/clapone/vishnew/config/application.rb:7:in `<top (required)>' 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require' 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>' 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap' 
from /Users/vishrutmehta/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>' 
from script/rails:6:in `require'  
from script/rails:6:in `<main>' 

請幫助

+0

讓我來幫助您將幫助我們闖民宅你這個回答你的問題:http://meta.stackexchange.com/questions/156810/stack-overflow-question-checklist –

回答

18

我有同樣的問題。通過重新安裝從沖泡捲曲並將其鏈接到我的路徑解決它

brew install curl 
brew ln curl --force 
+0

謝謝!這對我有效。 – Chang

2

我也有這個問題;我不得不跑

gem pristine curb 

要解決它。

+0

這解決了我的問題 –