2012-04-24 6 views
2

im essayant de déployer mon application dans Heroku, mais après avoir installé les autres pierres précieuses il me rails cette erreurheroku sqlite 1.3.6 problème?

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_2vzrh01g333bs/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6 for inspection. 
     Results logged to /tmp/build_2vzrh01g333bs/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/ext/sqlite3/gem_make.out 
     An error occured 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. 
! 
!  Heroku push rejected, failed to compile Ruby/rails app 

To [email protected]:floating-journey-3614.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:floating-journey-3614.git' 
[[email protected] djors]$ yum install sqlite-devel 
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit 
You need to be root to perform this command. 

j'ai vérifié yum install sqlite-devel mais son je l'ai déjà installé essayé google mais rien ne me vient une réponse que j'ai trouvé question dans 1.3.6 problème grâce à l'avance

- RUBYGEMS VERSION: 1.8.10 
    - RUBY VERSION: 1.9.3 (2011-09-23 patchlevel -1) [i686-linux] 
    - INSTALLATION DIRECTORY: /home/led/.rvm/gems/ruby-1.9.3-rc1 
    - RUBY EXECUTABLE: /home/led/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby 
    - EXECUTABLE DIRECTORY: /home/led/.rvm/gems/ruby-1.9.3-rc1/bin 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86-linux 
    - GEM PATHS: 
    - /home/led/.rvm/gems/ruby-1.9.3-rc1 
    - /home/led/.rvm/gems/[email protected] 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :benchmark => false 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - :sources => ["http://rubygems.org/", "http://gems.github.com"] 
    - REMOTE SOURCES: 
    - http://rubygems.org/ 
    - http://gems.github.com 

mon dossier gemme

gem 'rails', '3.2.1' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 
gem 'time_diff' 
gem 'activemerchant', :require => 'active_merchant' 
gem 'activeadmin' , '0.4.3' 
gem "formtastic", "~> 2.1.1" 
gem 'validates_overlap' 
gem "nifty-generators" 
gem 'thin' 
group :production, :staging do 
    gem "pg" 
end 

group :development, :test do 
    gem "sqlite3-ruby", "~> 1.3.0", :require => "sqlite3" 
end 
gem "paperclip", "~> 3.0" 

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

gem 'jquery-rails' 
+0

Ce problème est presque toujours parce que vous utilisez un petit bijou qui nécessite SQLite. –

+0

salut dites-vous cela? 'gem" sqlite3-ruby "," ~> 1.3.0 ",: require =>" sqlite3 "' Je viens de le trouver sur l'autre post et les gens disent que ça marche avez-vous des alternatives? – Led

Répondre

1

Vérifiez validates_overlap joyau ici:

https://github.com/robinbortlik/validates_overlap/blob/master/validates_overlap.gemspec

Il a une s.add_runtime_dependency(%q<sqlite3>, [">= 0"])

+0

alors dites-vous que validates_overlap gem n'est pas compatible avec heroku? désolé im nouveau dans les rails :( – Led

+0

Je ne sais pas ce gem particulier, mais de ce que je peux voir sur github, la réponse est non. Vous pouvez essayer de soumettre un problème au créateur de la gemme –

+0

essayé de le retirer et il est maintenant actuellement en cours de compilation :) – Led