title: HEROKU - cannot run git push heroku master
body: <p>I run commands </p>
  
  <pre><code>heroku create --stack cedar
  git push heroku master
  </code></pre>
  
  <p>but it gave me an error:</p>
  
  <pre><code>&gt; Counting objects: 144, done. Delta compression using up to 2 threads.
  &gt; Compressing objects: 100% (128/128), done. Writing objects: 100%
  &gt; (144/144), 50.16 KiB, done. Total 144 (delta 23), reused 0 (delta 0)
  &gt; 
  &gt; -----&gt; Heroku receiving push
  &gt; -----&gt; Ruby/Rails app detected
  &gt; -----&gt; Installing dependencies using Bundler version 1.1.rc
  &gt;        Running: bundle install --without development:test --path vendor/bundle --deployment
  &gt;        Fetching gem metadata from http://rubygems.org/.......
  &gt;        Installing rake (0.9.2.2)
  &gt;        Installing multi_json (1.0.3)
  &gt;        Installing activesupport (3.1.1)
  &gt;        Installing builder (3.0.0)
  &gt;        Installing i18n (0.6.0)
  &gt;        Installing activemodel (3.1.1)
  &gt;        Installing erubis (2.7.0)
  &gt;        Installing rack (1.3.5)
  &gt;        Installing rack-cache (1.1)
  &gt;        Installing rack-mount (0.8.3)
  &gt;        Installing rack-test (0.6.1)
  &gt;        Installing hike (1.2.1)
  &gt;        Installing tilt (1.3.3)
  &gt;        Installing sprockets (2.0.3)
  &gt;        Installing actionpack (3.1.1)
  &gt;        Installing mime-types (1.17.2)
  &gt;        Installing polyglot (0.3.2)
  &gt;        Installing treetop (1.4.10)
  &gt;        Installing mail (2.3.0)
  &gt;        Installing actionmailer (3.1.1)
  &gt;        Installing arel (2.2.1)
  &gt;        Installing tzinfo (0.3.30)
  &gt;        Installing activerecord (3.1.1)
  &gt;        Installing activeresource (3.1.1)
  &gt;        Installing coffee-script-source (1.1.2)
  &gt;        Installing execjs (1.2.9)
  &gt;        Installing coffee-script (2.2.0)
  &gt;        Installing rack-ssl (1.3.2)
  &gt;        Installing json (1.6.1) with native extensions
  &gt;        Installing rdoc (3.11)
  &gt;        Installing thor (0.14.6)
  &gt;        Installing railties (3.1.1)
  &gt;        Installing coffee-rails (3.1.1)
  &gt;        Installing jquery-rails (1.0.16)
  &gt;        Installing pg (0.11.0) with native extensions
  &gt;        Using bundler (1.1.rc)
  &gt;        Installing rails (3.1.1)
  &gt;        Installing sass (3.1.10)
  &gt;        Installing sass-rails (3.1.4)
  &gt;        **Installing sqlite3 (1.3.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to
  &gt; the Bundler issue tracker at
  &gt; https://github.com/carlhuda/bundler/issues so that we can fix it.
  &gt; Thanks!**
  &gt;        /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native
  &gt; extension. (Gem::Installer::ExtensionBuildError)
  &gt;        /usr/local/bin/ruby extconf.rb
  &gt;        checking for sqlite3.h... no
  &gt;        sqlite3.h is missing. Try 'port install sqlite3 +universal'
  &gt;        or 'yum install sqlite3-devel' and check your shared library search path (the
  &gt;        location where your sqlite3 shared library is located).
  &gt;        *** extconf.rb failed ***
  &gt;        Could not create Makefile due to some reason, probably lack of
  &gt;        necessary libraries and/or headers.  Check the mkmf.log file for more
  &gt;        details.  You may need configuration options.
  &gt;        Provided configuration options:
  &gt;        --with-opt-dir
  &gt;        --without-opt-dir
  &gt;        --with-opt-include
  &gt;        --without-opt-include=${opt-dir}/include
  &gt;        --with-opt-lib
  &gt;        --without-opt-lib=${opt-dir}/lib
  &gt;        --with-make-prog
  &gt;        --without-make-prog
  &gt;        --srcdir=.
  &gt;        --curdir
  &gt;        --ruby=/usr/local/bin/ruby
  &gt;        --with-sqlite3-dir
  &gt;        --without-sqlite3-dir
  &gt;        --with-sqlite3-include
  &gt;        --without-sqlite3-include=${sqlite3-dir}/include
  &gt;        --with-sqlite3-lib
  &gt;        --without-sqlite3-lib=${sqlite3-dir}/lib
  &gt;        --enable-local
  &gt;        --disable-local
  &gt;        Gem files will remain installed in /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.4
  &gt; for inspection.
  &gt;        Results logged to /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out
  &gt;        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:486:in `block in build_extensions'
  &gt;        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `each'
  &gt;        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `build_extensions'
  &gt;        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:198:in `install'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/source.rb:90:in
  &gt; `block in install'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:78:in
  &gt; `preserve_paths'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/source.rb:89:in
  &gt; `install'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:73:in
  &gt; `block in install_gem_from_spec'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:93:in
  &gt; `with_build_args'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:72:in
  &gt; `install_gem_from_spec'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:56:in
  &gt; `block in run'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:55:in
  &gt; `run'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:12:in
  &gt; `install'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in
  &gt; `install'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in
  &gt; `run'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in
  &gt; `dispatch'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:in
  &gt; `start'
  &gt;        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/bin/bundle:13:in
  &gt; `&lt;top (required)&gt;'
  &gt;        from vendor/bundle/ruby/1.9.1/bin/bundle:19:in `load'
  &gt;        from vendor/bundle/ruby/1.9.1/bin/bundle:19:in `&lt;main&gt;'  !  !     Failed to install gems via Bundler.  !  !     Heroku push rejected,
  &gt; failed to compile Ruby/rails app
  &gt; 
  &gt; To git@heroku.com:falling-ice-5948.git  ! [remote rejected] master -&gt;
  &gt; master (pre-receive hook declined) error: failed to push some refs to
  &gt; 'git@heroku.com:falling-ice-5948.git'
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong> - This post could be really helpful: <a href="https://stackoverflow.com/q/3458602/1021970">sqlite3-ruby install error</a></p>