2012-07-19 153 views
2

我試圖將應用程序推送到heroku並獲取下面的錯誤消息。我已經看到了關於這個主題的其他一些帖子,我沒有看到解決它。我沒有在應用程序的任何地方引用sqlite3,也沒有將它作爲我自己系統中的寶石。想法?錯誤推送到heroku; heroku正在嘗試安裝與sqlite3相關的東西

Installing dependencies using Bundler version 1.2.0.pre 
    Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment 
    Fetching gem metadata from https://rubygems.org/....... 
    Installing rake (0.9.2.2) 
    Installing i18n (0.6.0) 
    Installing multi_json (1.3.6) 
    Installing activesupport (3.2.3) 
    Installing builder (3.0.0) 
    Installing activemodel (3.2.3) 
    Installing erubis (2.7.0) 
    Installing journey (1.0.4) 
    Installing rack (1.4.1) 
    Installing rack-cache (1.2) 
    Installing rack-test (0.6.1) 
    Installing hike (1.2.1) 
    Installing tilt (1.3.3) 
    Installing sprockets (2.1.3) 
    Installing actionpack (3.2.3) 
    Installing mime-types (1.19) 
    Installing polyglot (0.3.3) 
    Installing treetop (1.4.10) 
    Installing mail (2.4.4) 
    Installing actionmailer (3.2.3) 
    Installing arel (3.0.2) 
    Installing tzinfo (0.3.33) 
    Installing activerecord (3.2.3) 
    Installing activeresource (3.2.3) 
    Installing coffee-script-source (1.3.3) 
    Installing execjs (1.4.0) 
    Installing coffee-script (2.2.0) 
    Installing rack-ssl (1.3.2) 
    Installing json (1.7.3) with native extensions 
    Installing rdoc (3.12) 
    Installing thor (0.14.6) 
    Installing railties (3.2.3) 
    Installing coffee-rails (3.2.2) 
    Installing jquery-rails (2.0.2) 
    Using bundler (1.2.0.pre) 
    Installing rails (3.2.3) 
    Installing sass (3.1.20) 
    Installing sass-rails (3.2.5) 
    Installing sqlite3 (1.3.6) with native extensions 
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 
    /usr/local/bin/ruby extconf.rb 
    checking for sqlite3.h... no 
    sqlite3.h is missing. Try 'port install sqlite3 +universal' 
    or 'yum install sqlite-devel' and check your shared library search path (the 
    location where your sqlite3 shared library is located). 
    *** 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 
    --without-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=/usr/local/bin/ruby 
    --with-sqlite3-dir 
    --without-sqlite3-dir 
    --with-sqlite3-include 
    --without-sqlite3-include=${sqlite3-dir}/include 
    --with-sqlite3-lib 
    --without-sqlite3-lib=${sqlite3-dir}/lib 
    --enable-local 
    --disable-local 
    Gem files will remain installed in /tmp/build_epqv5l1a15kp/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6 for inspection. 
    Results logged to /tmp/build_epqv5l1a15kp/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/ext/sqlite3/gem_make.out 
    An error occurred while installing sqlite3 (1.3.6), and Bundler cannot continue. 
    Make sure that `gem install sqlite3 -v '1.3.6'` succeeds before bundling. 
    Failed to install gems via Bundler. 
    Detected sqlite3 gem which is not supported on Heroku. 
    http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development 
    Heroku push rejected, failed to compile Ruby/rails app 

我的寶石文件看起來像;

source 'https://rubygems.org' 
gem 'rails', '3.2.3' 
gem 'jquery-rails' 
group :development, :test do 
gem "pg", "~> 0.14.0" 
gem "rspec", "~> 2.11.0" 
end 
group :assets do 
gem 'sass-rails', '~> 3.2.3' 
gem 'coffee-rails', '~> 3.2.1' 
gem 'uglifier', '>= 1.0.3' 
end 
group :production do 
gem "pg", "~> 0.14.0" 
end 

和我的gemfile.lock看起來像;

GEM remote: https://rubygems.org/ 
    specs: 
    actionmailer (3.2.3) 
     actionpack (= 3.2.3) 
     mail (~> 2.4.4) 
    actionpack (3.2.3) 
     activemodel (= 3.2.3) 
     activesupport (= 3.2.3) 
     builder (~> 3.0.0) 
     erubis (~> 2.7.0) 
     journey (~> 1.0.1) 
     rack (~> 1.4.0) 
     rack-cache (~> 1.2) 
     rack-test (~> 0.6.1) 
     sprockets (~> 2.1.2) 
    activemodel (3.2.3) 
     activesupport (= 3.2.3) 
     builder (~> 3.0.0) 
    activerecord (3.2.3) 
     activemodel (= 3.2.3) 
     activesupport (= 3.2.3) 
     arel (~> 3.0.2) 
     tzinfo (~> 0.3.29) 
    activeresource (3.2.3) 
     activemodel (= 3.2.3) 
     activesupport (= 3.2.3) 
    activesupport (3.2.3) 
     i18n (~> 0.6) 
     multi_json (~> 1.0) 
    arel (3.0.2) 
    builder (3.0.0) 
    coffee-rails (3.2.2) 
     coffee-script (>= 2.2.0) 
     railties (~> 3.2.0) 
    coffee-script (2.2.0) 
     coffee-script-source 
     execjs 
    coffee-script-source (1.3.3) 
    diff-lcs (1.1.3) 
    erubis (2.7.0) 
    execjs (1.4.0) 
     multi_json (~> 1.0) 
    hike (1.2.1) 
    i18n (0.6.0) 
    journey (1.0.4) 
    jquery-rails (2.0.2) 
     railties (>= 3.2.0, < 5.0) 
     thor (~> 0.14) 
    json (1.7.3) 
    mail (2.4.4) 
     i18n (>= 0.4.0) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    mime-types (1.19) 
    multi_json (1.3.6) 
    pg (0.14.0) 
    polyglot (0.3.3) 
    rack (1.4.1) 
    rack-cache (1.2) 
     rack (>= 0.4) 
    rack-ssl (1.3.2) 
     rack 
    rack-test (0.6.1) 
     rack (>= 1.0) 
    rails (3.2.3) 
     actionmailer (= 3.2.3) 
     actionpack (= 3.2.3) 
     activerecord (= 3.2.3) 
     activeresource (= 3.2.3) 
     activesupport (= 3.2.3) 
     bundler (~> 1.0) 
     railties (= 3.2.3) 
    railties (3.2.3) 
     actionpack (= 3.2.3) 
     activesupport (= 3.2.3) 
     rack-ssl (~> 1.3.2) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (~> 0.14.6) 
    rake (0.9.2.2) 
    rdoc (3.12) 
     json (~> 1.4) 
    rspec (2.11.0) 
     rspec-core (~> 2.11.0) 
     rspec-expectations (~> 2.11.0) 
     rspec-mocks (~> 2.11.0) 
    rspec-core (2.11.1) 
    rspec-expectations (2.11.1) 
     diff-lcs (~> 1.1.3) 
    rspec-mocks (2.11.1) 
    sass (3.1.20) 
    sass-rails (3.2.5) 
     railties (~> 3.2.0) 
     sass (>= 3.1.10) 
     tilt (~> 1.3) 
    sprockets (2.1.3) 
     hike (~> 1.2) 
     rack (~> 1.0) 
     tilt (~> 1.1, != 1.3.0) 
    thor (0.14.6) 
    tilt (1.3.3) 
    treetop (1.4.10) 
     polyglot 
     polyglot (>= 0.3.1) 
    tzinfo (0.3.33) 
    uglifier (1.2.6) 
     execjs (>= 0.3.0) 
     multi_json (~> 1.3) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    coffee-rails (~> 3.2.1) 
    jquery-rails 
    pg (~> 0.14.0) 
    rails (= 3.2.3) 
    rspec (~> 2.11.0) 
    sass-rails (~> 3.2.3) 
    uglifier (>= 1.0.3)` 

回答

4

我懷疑你還沒有提交你的Gemfile.lock。 git status告訴你什麼?或者,嘗試git add .,然後再次嘗試git status

+1

工作。這樣一個瘋狂的細節可以忽略。我確保一切都被添加到提交,然後承諾,推到heroku。謝謝! – John 2012-07-19 07:52:30

+0

很高興這有幫助!多次犯了這個錯誤。 – 2012-07-19 07:56:58

+0

btw,什麼是您的推特/電子郵件,我很好奇SG的紅寶石社區是什麼樣的。我會說普通話,並且在那裏度過了一些美好的時光,想尋找開發/商業合作的機會。 – John 2012-07-19 18:09:44