2012-12-28 113 views
1

當我運行bundle install command.it時,我必須運行一個現有的項目,在它上面停留將近半個小時,但仍然沒有完成bundle install命令。使用ruby1.9.3p327和我的rails版本是3.2.9,項目使用原生擴展安裝linecache19(0.5.12)

source 'https://rubygems.org' 

gem 'rails', '3.2.8' 
gem 'pg', '0.14.1' 

gem 'compass', git: 'git://github.com/chriseppstein/compass.git' 
gem 'sass-rails', '~> 3.2.3' 
gem 'jquery-rails', '~> 2.0.0' 

gem 'devise', '~> 2.0.0' 
gem 'bootstrap-sass', '2.1.1.0' 
gem 'simple_form', '2.0.4' 

#gem 'refinerycms', '2.0.8' 
gem 'refinerycms-dashboard' 
gem 'refinerycms-images' 
gem 'refinerycms-pages' 
gem 'refinerycms-resources' 

gem 'refinerycms-bootstrap', git: 'git://github.com/ghoppe/refinerycms-bootstrap.git' 
gem 'rest-client', '1.6.7', require: 'rest_client' 
gem 'hashie', '1.2.0' 

gem 'faye' 
gem 'restforce' 

# gems from old site's gemfile 
gem 'databasedotcom' # we may get rid of this 
gem 'databasedotcom-rails' # we may get rid of this 
gem 'haml' 
gem 'will_paginate' 
gem 'httparty' 

gem 'ruby-openid', :git => "git://github.com/mbleigh/ruby-openid.git" 
gem 'openid_active_record_store' 
gem 'omniauth-twitter' 
gem 'omniauth-github' 
gem 'omniauth-facebook' 
gem 'omniauth-linkedin' 
gem 'omniauth-openid' 
gem 'omniauth-salesforce' 
gem 'savon' 

gem 'redis' 
gem 'aws-s3', :require => 'aws/s3' # no longer needed? 
gem 'thin' 
gem 'resque', :git => 'http://github.com/hone/resque.git', :branch => 'keepalive', :require => 'resque/server' 
gem "recaptcha", :require => "recaptcha/rails" 
gem 'flash_messages_helper' 
gem 'remote_syslog_logger' 
gem 'dalli' 
gem 'encryptor' 
gem 'airbrake' 

gem 'chosen-rails' 
gem 'fog' 

# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'coffee-rails', '~> 3.2.1' 
    # See https://github.com/sstephenson/execjs#readme for more supported runtimes 
    # gem 'therubyracer', :platforms => :ruby 
    gem 'uglifier', '>= 1.0.3' 
end 

group :development, :test do 
    gem 'annotate', '2.4.0' 
    gem 'guard' 
    gem 'guard-bundler' 
    gem 'guard-rspec' 
    gem 'spork' 
    gem "guard-spork" 
    gem 'growl' 
    gem 'ruby-debug19' 
    gem 'sqlite3' 
    gem 'rspec-rails' 
    gem 'sextant' 
    gem 'quiet_assets' 
    gem 'vcr' 
    gem 'rb-fsevent', '~> 0.9.1' 
    gem 'sql-logging' 
end 

group :test do 
    # Pretty printed test output 
    gem 'turn', :require => false 
    gem "minitest" 
    gem "rake" 
    gem 'webmock' 
    gem "mocha" 
end 

和線路爲它停留很長一段時間的寶石文件

安裝linecache19(0.5.12)與原生擴展

任何一個請幫助如何安裝這個項目?

+0

你能在這裏粘貼錯誤日誌?你使用什麼操作系統? –

+0

當我運行軟件包安裝它安裝了很多寶石,但它在這條線上保持很長時間 安裝linecache19(0.5.12)與本機擴展 所以沒有錯誤日誌,我正在使用ubuntu12.04。 –

+1

試試gem install linecache19 --backtrace –

回答

2

隨着最新的紅寶石1.9+,像ruby-debuglinecache幾個寶石變得非常痛苦的安裝。但是,替代方案debuggerdebugger-linecache通常可以解決問題。

+0

這應該是最高的回答。我一直在尋找這個字面上5個小時,這是最簡單的簡單的解決方案。感謝百萬midu。 – LunaCodeGirl

2

我發現它掛起很長時間的原因是由於某些原因,它無法找到Ruby源代碼(它在構建本地擴展時需要某些頭文件),因此它會下載它再次。由於該軟件包相當大,而且服務器速度很慢且負載很重,因此需要很長時間(30分鐘以上),整個事件似乎已經掛起,因爲沒有任何反饋。

如果用^ C打破它這樣做的同時,你可能會得到一個錯誤信息是這樣的:

/home/xxxx/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb 
checking for vm_core.h... no 
*** 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=/home/xxxx/.rvm/rubies/ruby-1.9.3-p392/bin/ruby 
     --with-ruby-dir 
     --without-ruby-dir 
     --with-ruby-include 
     --without-ruby-include=${ruby-dir}/include 
     --with-ruby-lib 
     --without-ruby-lib=${ruby-dir}/lib 
Requesting http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz 
Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz 

這兩條線在底部是線索是怎麼回事。

我收集你應該能夠在「gem install」或「bundle config」中使用「--with-ruby-include」選項來強制它使用你已有的源代碼,但在我的有限的)測試這些似乎並不奏效,而且一旦我意識到發生了什麼,我並沒有深入。

這裏有一些鏈接,提到這一點 - 希望你將有更多的運氣比我:

Installing linecache19 for Ruby 1.9.2 via rvm
https://github.com/mark-moseley/ruby-debug/wiki/Installation%3A-command-line-version

相關問題