Note that there are some explanatory texts on larger screens.

plurals
  1. PO"sqlite3.h" missing when pushing Rails app to Heroku
    primarykey
    data
    text
    <p>I'm following <a href="http://ruby.railstutorial.org/chapters/a-demo-app#sec:deploying_the_demo_app">this tutorial</a>, but it fails when I try to push to Heroku. It seems "sqlite3.h" is missing. I'm new to development so I'm not sure what information will help people diagnose the problem, so here's everything :). I'm running on Mac OS X 10.7 Lion. Here are the versions of everything I'm working with:</p> <pre><code>Amits-MacBook-Air-2:demo_app amitgupta$ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] Amits-MacBook-Air-2:demo_app amitgupta$ rails -v Rails 3.2.3 Amits-MacBook-Air-2:demo_app amitgupta$ sqlite3 -version 3.7.11 2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669 Amits-MacBook-Air-2:demo_app amitgupta$ heroku -v 2.25.0 Amits-MacBook-Air-2:demo_app amitgupta$ port -v MacPorts 2.0.4 Entering interactive mode... ("help" for help, "quit" to quit) [RailsApps/demo_app] &gt; quit Goodbye </code></pre> <p>When I try to push to Heroku:</p> <pre><code>Amits-MacBook-Air-2:demo_app amitgupta$ heroku create --stack cedar Creating floating-stream-8009... done, stack is cedar http://floating-stream-8009.herokuapp.com/ | git@heroku.com:floating-stream-8009.git Amits-MacBook-Air-2:demo_app amitgupta$ git push heroku master </code></pre> <p>Here's what I get:</p> <pre><code>Counting objects: 119, done. Delta compression using up to 4 threads. Compressing objects: 100% (104/104), done. Writing objects: 100% (119/119), 33.74 KiB, done. Total 119 (delta 17), reused 0 (delta 0) -----&gt; Heroku receiving push -----&gt; Ruby/Rails app detected -----&gt; Installing dependencies using Bundler version 1.1.2 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 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 . . . --disable-local Gem files will remain installed in /tmp/build_2l2dn7bx7lu34/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6 for inspection. Results logged to /tmp/build_2l2dn7bx7lu34/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 git@heroku.com:blazing-mountain-3659.git ! [remote rejected] master -&gt; master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:blazing-mountain-3659.git' </code></pre> <p>When I do:</p> <pre><code>Amits-MacBook-Air-2:demo_app amitgupta$ sudo port install sqlite3 +universal </code></pre> <p>I get:</p> <pre><code>Password: ---&gt; Computing dependencies for sqlite3 ---&gt; Cleaning sqlite3 </code></pre> <p>Next I tried:</p> <pre><code>Amits-MacBook-Air-2:demo_app amitgupta$ sudo gem install sqlite3 -v '1.3.6' </code></pre> <p>And get:</p> <pre><code>Building native extensions. This could take a while... Successfully installed sqlite3-1.3.6 1 gem installed Installing ri documentation for sqlite3-1.3.6... Installing RDoc documentation for sqlite3-1.3.6... </code></pre> <p>Then:</p> <pre><code>Amits-MacBook-Air-2:demo_app amitgupta$ bundle install </code></pre> <p>gives:</p> <pre><code>Using rake (0.9.2.2) . . . Using sqlite3 (1.3.6) Using uglifier (1.2.4) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. </code></pre> <p>Then I try pushing to Heroku again, but get the same problem. Perhaps it has something to do with the discrepancy between the first command "Creating floating-stream-8009" and the second command "failed to push some refs to 'git@heroku.com:blazing-mountain-3659.git'"?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload