2012-06-12 10 views
8

पहले पोस्ट यहां =) मदद करने के लिए अग्रिम धन्यवाद, इस बिंदु पर कोई मदद शांत है!उसकेोकू को धक्का नहीं दे सकता - sqlite3.h गुम है

1- मैं काफी एक बहुत खोज की है और stackoverflow पर पोस्टिंग विचार करने से पहले बहुत सी चीज़ें हैं की कोशिश की है ..

2- जब

git push heroku master 

चल मैं इस मिल:

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). 

3- मैंने जेमफाइल की जांच की: उत्पादन और देव/परीक्षण क्रमशः पीजी और एसक्लाइट 3 के लिए कॉन्फ़िगर किया गया है

4- Sqlite3.h यहाँ है:

pcbo$ ls -l /usr/include/sqlite3.h 
    -rw-r--r-- 1 root wheel 322724 7 Dec 2011 /usr/include/sqlite3.h 

5- मैं उपयोग कर रहा हूँ मैक ओएस एक्स का उल्लेख भूल ..

6- का आउटपुट: pcbo $ Git धक्का Heroku मास्टर

Counting objects: 71, done. 
    Delta compression using up to 4 threads. 
    Compressing objects: 100% (58/58), done. 
    Writing objects: 100% (71/71), 26.46 KiB, done. 
    Total 71 (delta 8), reused 0 (delta 0) 

    -----> Heroku receiving push 
    -----> Ruby/Rails app detected 
    -----> 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.3) 
    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.18) 
    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) 
    Installing pg (0.12.2) with native extensions 
    Using bundler (1.2.0.pre) 
    Installing rails (3.2.3) 
    Installing sass (3.1.19) 
    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_zmjrcoagwpai/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6 for inspection. 
    Results logged to /tmp/build_zmjrcoagwpai/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. 
    ! 
    !  Heroku push rejected, failed to compile Ruby/rails app 

7- किसी भी मदद की वास्तव में सराहना की जाती है!

+0

है कि 'ls अपने स्थानीय विकास मशीन या Heroku मशीन से -l' उत्पादन वह आपके सॉफ्टवेयर को चलाएगा? – sarnold

+0

@ कर्नाल्ड: यह मेरी स्थानीय देव मशीन – pcbo

+0

है क्या आप देवदार स्टैक का उपयोग कर रहे हैं? –

उत्तर

11

[Update1]

अपना Git धक्का लॉग से, यहाँ अपने दोषी है: -

Installing sqlite3 (1.3.6) with native extensions 

तो, मैं शुरू में संदिग्ध के रूप में, गलती sqlite3 मणि जिस पर असफल हो जायेगी लोड करने के लिए कोशिश कर रहा है Heroku। जैसा कि पहले कहा इस वजह से दो कारणों

  1. Gemfile को गलत तरीके से उत्पादन
  2. कुछ अन्य मणि sqlite3 मणि पर निर्भरता है में sqlite3 मणि की आवश्यकता के लिए कॉन्फ़िगर किया गया है हो सकता है। मणि & की निर्भरताओं को दिखाने के लिए gem dependency कमांड का उपयोग करें उस मणि को हटाएं जो sqlite3 पर निर्भर करता है।

उसके बाद, bundle install & फिर से काम करेगा।

--- [समाप्ति Update1] ---

एकमात्र कारण आपको यह त्रुटि मिल सकता है जब, Heroku पर sqlite3 डेटाबेस समर्थन नहीं करने का उपयोग करने की कोशिश कर। इतनी बारीकी से अपने Gemfile का निरीक्षण किया और इसके सेटअप इस

group :production do 
    gem 'pg' 
end 
group :development, :test do 
    gem 'sqlite3' 
end 

के समान यह सुनिश्चित कर लें और फिर bundle install कर अपने Gemfile.lock पुनर्जीवित करने के लिए। अब, heroku धक्का देने की कोशिश करो। अगर आपको अभी भी यह त्रुटि मिलती है, तो शायद आपके द्वारा उपयोग किए जा रहे कुछ मणि sqlite3 को gemspec फ़ाइल में हार्ड-कोडेड निर्भरता के रूप में सूचीबद्ध किया गया है। तो असल में, sqlite3 लोड किया जा रहा है भले ही यह रत्न में मौजूद नहीं है। तो इसे सत्यापित करें, स्थानीयहोस्ट पर निम्न आदेश चलाएं:

$ bundle install | grep sqlite 

आखिरकार, इसे आजमाने के बाद। यह काम नहीं करता है।वापस पोस्ट heroku logs की git push heroku master & उत्पादन का पूरा लॉग।

+0

हाय @ गौरीश। जैसा कि मैंने पहले बताया था कि जेमफाइल सही ढंग से कॉन्फ़िगर किया गया था और 'बंडल इंस्टॉल | ग्रेप sqlite' रिटर्न 'sqlite3 (1.3.6)' अभी _Checking Heroku logs_ – pcbo

+0

** Heroku लॉग पुनर्प्राप्त करने में कैसे उपयोग करना: ** 2012-06-12T00: 53: 42 + 00: 00 Heroku [slugc ]: स्लग संकलन शुरू कर दिया 2012-06-12T00: 54: 09 + 00: 00 Heroku [slugc]: स्लग संकलन विफल: रूबी/रेल एप्लिकेशन को संकलित करने में विफल रहा है 2012-06-12T09: 20: 31 + 00: 00 Heroku [स्लगैक]: स्लग संकलन 2012-06-12T09: 21: 04 + 00: 00 heroku [slugc]: स्लग संकलन विफल: रुबी/रेल ऐप संकलित करने में विफल क्या यह लॉग आपने पूछा है? _ नहीं ' टी अधिक जानकारी दे .. – pcbo

+0

'गीट पुश हेरोकू मास्टर' का लॉग मूल प्रश्न (चरण 6) – pcbo

0

लगता है कि स्क्लाइट लाइब्रेरी गुम है। की कोशिश करो और अगर यह आपके सिस्टम में है

whereis sqlite3.h 

के साथ मिल जाए, कोशिश:

sudo gem install sqlite3-ruby -- --with-sqlite3-include=<"url where it is(for eg: /usr/include)"> 

सादर

+0

धन्यवाद लेकिन समस्या पहले ही हल हो चुकी है! :) – pcbo

संबंधित मुद्दे