0

我正在开发一个新项目,当我点击 bundle install 时,出现以下错误:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
 
    /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb 
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
 
make "DESTDIR="
Makefile:104: *** missing separator.  Stop.

我以前从未见过这种情况,所以我不知道如何解决它,但它肯定让我受不了。

宝石文件

来源:rubygems

gem "rails", "2.3.14"
gem "authlogic", "2.1.6"
gem "declarative_authorization", "0.5.1"
gem "carmen", "0.1.1"
gem "pg", "0.9.0"
gem "aws-s3", "0.6.2"
gem "paperclip", "2.3.3"
gem "taps", "0.3.8"
gem "vestal_versions", "1.0.2"
gem "formtastic", "1.0"
gem "validation_reflection", "0.3.8"
gem "factory_girl", "1.3.2"
gem "faker", "0.3.1"
gem 'prawn', :git => "git://github.com/sandal/prawn", :tag => '0.10.2', :submodules => true
#gem 'prawn', :git => "git://github.com/prawnpdf/prawn.git", :tag => '0.12.0', :submodules => true                                                            
gem "prawnto", "~> 0.0.4"
gem 'hoptoad_notifier', '>=2.4.4'
gem "whenever", "0.6.2", :require => false
gem 'whereuat'
gem 'RedCloth', '4.1.9'
gem 'heroku'
gem 'fastercsv'
gem 'will_paginate', '2.3.16'
gem "sunspot", '1.2.1'
gem 'sunspot_rails', '~> 1.2.1'
gem 'rake', '0.8.7'
gem 'rmagick', '2.13.1', :require => 'RMagick'
gem "chunky_png", '1.2.5'
gem "rqrcode", '0.4.2'
gem "pngqr", '0.6'
gem "acts_as_list", '0.1.4'
#gem 'docusign_rest'             

   
                                                                              |
group :development do                                                         |
  gem "mongrel", "1.1.5"                                                      |
  gem "ruby-debug", "0.10.3"                                                  |
  gem "pickler", "~> 0.2.0"                                                   |
  #gem 'sunspot_solr'                                                         |
end                                                                           |
                                                                              |
group :test, :cucumber do                                                     |
  #gem 'cucumber-rails',   '>=0.3.2'                                          |
  #gem 'cucumber', "0.10.7"                                                   |
  gem 'database_cleaner', '>=0.5.2', :require => false                        |
  gem 'rspec-rails',      '1.3.3', :require => false                          |
  gem 'rspec',            '1.3.1', :require => false                          |
  gem "webrat", "0.7.1"                                                       |
  #gem "email_spec", "0.6.2"                                                  |
  gem "launchy", "0.3.5"                                                      |
  #gem 'specjour', '0.5.0'                                                    |
end                                                                           |
                                                                              |
group :production do                                                          |
  gem "thin"                                                                  |
  gem 'newrelic_rpm'                                                          |
end                                                                           |
                                                                              |
                                                                              |
                                                                              |
                                                                              |
                                                                              |
                       
4

1 回答 1

3

该错误是由mongrel它在很长一段时间内未维护引起的。您可以thin在开发和生产中使用。

ruby-debug也不会在 2.0 中工作。您可以使用prybyebug作为替代方案。

于 2013-11-06T02:32:17.083 回答