2013-07-18 68 views
0

我試圖運行「捆綁安裝」,但不斷收到以下錯誤消息......無法構建本地寶石擴展

~/src/*******/******_bundle/trunk zackwarburg $ bundle install 
Fetching source index from https://gemini.atl.********.net/ 
Fetching gem metadata from https://rubygems.org/......... 
Fetching gem metadata from https://rubygems.org/....... 
Using rake (0.9.2.2) 
Using i18n (0.6.1) 
Using multi_json (1.5.0) 
Using activesupport (3.2.10) 
Using builder (3.0.4) 
Using activemodel (3.2.10) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.10) 
Using addressable (2.3.2) 
Using mime-types (1.19) 
Using nokogiri (1.5.9) 
Using ffi (1.2.0) 
Using childprocess (0.3.6) 
Using websocket (1.0.6) 
Using libwebsocket (0.1.7.1) 
Using rubyzip (0.9.9) 
Using selenium-webdriver (2.27.2) 
Using xpath (0.1.4) 
Using capybara (1.1.4) 
Using ae_page_objects (0.1.2) 
Using american_date (1.0.0) 
Using cobravsmongoose (0.0.2) 
Using open4 (1.3.0) 
Using af_ruby (2.20.0) 
Using af_testing (0.11.0) 
Using blockenspiel (0.4.5) 
Using rack-ssl (1.3.2) 
Using json (1.7.6) 
Using rdoc (3.12) 
Using thor (0.16.0) 
Using railties (3.2.10) 
Using af_selenium (9.0.0) 
Using rest-client (1.6.7) 
Using af_bundle_testing (12.0.0) 
Using columnize (0.3.6) 
Using daemon_controller (1.0.0) 
Using fastthread (1.0.7) 
Using rbx-require-relative (0.0.9) 
Installing linecache (0.46) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

    /Users/zackwarburg/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb 
Can't handle 1.9.x yet 
*** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
    --with-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/Users/zackwarburg/.rvm/rubies/ruby-1.9.3-p448/bin/ruby 


Gem files will remain installed in /Users/zackwarburg/.rvm/gems/ruby-1.9.3-p448/gems/linecache-0.46 for inspection. 
Results logged to /Users/zackwarburg/.rvm/gems/ruby-1.9.3-p448/gems/linecache-0.46/ext/gem_make.out 

An error occurred while installing linecache (0.46), and Bundler cannot continue. 
Make sure that `gem install linecache -v '0.46'` succeeds before bundling. 

我做了一些閒逛,並嘗試了一些不同的解決方案,但我這個東西真的是新的,我不知道如何繼續。

+1

的可能重複[Ruby on Rails的 - linecache錯誤,而試圖「包安裝」(http://stackoverflow.com/questions/5754493/ruby​​-on-rails-linecache-while-trying-to-bundle-install) –

回答

2

基礎上出現的錯誤在那裏,你可以看到問題的寶石linecache

Installing linecache (0.46) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

然後,其中一條線表明,它是一個與紅寶石版中的問題:

Can't handle 1.9.x yet 

linecache有一個bug filed,指出它與Ruby 1.9不兼容。

您可能能夠通過使用linecache19,而不是去解決這個...

+0

感謝您的快速響應。我正在嘗試這個。 – Zack

+0

是的它沒有工作。我需要linecache來編譯 – Zack

+0

哦,所以你有一個gem,它依賴於'Gemfile'中的'linecache'?也許有*代替*寶石... –

相關問題