Ruby on rails HEROKU-无法运行git push HEROKU master

Ruby on rails HEROKU-无法运行git push HEROKU master,ruby-on-rails,ruby,heroku,sqlite,Ruby On Rails,Ruby,Heroku,Sqlite,我运行命令 heroku create --stack cedar git push heroku master 但它给了我一个错误: > Counting objects: 144, done. Delta compression using up to 2 threads. > Compressing objects: 100% (128/128), done. Writing objects: 100% > (144/144), 50.16 KiB, done. Tot

我运行命令

heroku create --stack cedar
git push heroku master
但它给了我一个错误:

> Counting objects: 144, done. Delta compression using up to 2 threads.
> Compressing objects: 100% (128/128), done. Writing objects: 100%
> (144/144), 50.16 KiB, done. Total 144 (delta 23), reused 0 (delta 0)
> 
> -----> Heroku receiving push
> -----> Ruby/Rails app detected
> -----> Installing dependencies using Bundler version 1.1.rc
>        Running: bundle install --without development:test --path vendor/bundle --deployment
>        Fetching gem metadata from http://rubygems.org/.......
>        Installing rake (0.9.2.2)
>        Installing multi_json (1.0.3)
>        Installing activesupport (3.1.1)
>        Installing builder (3.0.0)
>        Installing i18n (0.6.0)
>        Installing activemodel (3.1.1)
>        Installing erubis (2.7.0)
>        Installing rack (1.3.5)
>        Installing rack-cache (1.1)
>        Installing rack-mount (0.8.3)
>        Installing rack-test (0.6.1)
>        Installing hike (1.2.1)
>        Installing tilt (1.3.3)
>        Installing sprockets (2.0.3)
>        Installing actionpack (3.1.1)
>        Installing mime-types (1.17.2)
>        Installing polyglot (0.3.2)
>        Installing treetop (1.4.10)
>        Installing mail (2.3.0)
>        Installing actionmailer (3.1.1)
>        Installing arel (2.2.1)
>        Installing tzinfo (0.3.30)
>        Installing activerecord (3.1.1)
>        Installing activeresource (3.1.1)
>        Installing coffee-script-source (1.1.2)
>        Installing execjs (1.2.9)
>        Installing coffee-script (2.2.0)
>        Installing rack-ssl (1.3.2)
>        Installing json (1.6.1) with native extensions
>        Installing rdoc (3.11)
>        Installing thor (0.14.6)
>        Installing railties (3.1.1)
>        Installing coffee-rails (3.1.1)
>        Installing jquery-rails (1.0.16)
>        Installing pg (0.11.0) with native extensions
>        Using bundler (1.1.rc)
>        Installing rails (3.1.1)
>        Installing sass (3.1.10)
>        Installing sass-rails (3.1.4)
>        **Installing sqlite3 (1.3.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to
> the Bundler issue tracker at
> https://github.com/carlhuda/bundler/issues so that we can fix it.
> Thanks!**
>        /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native
> extension. (Gem::Installer::ExtensionBuildError)
>        /usr/local/bin/ruby extconf.rb
>        checking for sqlite3.h... no
>        sqlite3.h is missing. Try 'port install sqlite3 +universal'
>        or 'yum install sqlite3-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_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.4
> for inspection.
>        Results logged to /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out
>        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:486:in `block in build_extensions'
>        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `each'
>        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `build_extensions'
>        from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:198:in `install'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/source.rb:90:in
> `block in install'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:78:in
> `preserve_paths'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/source.rb:89:in
> `install'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:73:in
> `block in install_gem_from_spec'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:93:in
> `with_build_args'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:72:in
> `install_gem_from_spec'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:56:in
> `block in run'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:55:in
> `run'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:12:in
> `install'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in
> `install'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in
> `run'
>        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'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in
> `dispatch'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:in
> `start'
>        from /tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/bin/bundle:13:in
> `<top (required)>'
>        from vendor/bundle/ruby/1.9.1/bin/bundle:19:in `load'
>        from vendor/bundle/ruby/1.9.1/bin/bundle:19:in `<main>'  !  !     Failed to install gems via Bundler.  !  !     Heroku push rejected,
> failed to compile Ruby/rails app
> 
> To git@heroku.com:falling-ice-5948.git  ! [remote rejected] master ->
> master (pre-receive hook declined) error: failed to push some refs to
> 'git@heroku.com:falling-ice-5948.git'
>计数对象:144,完成。增量压缩最多使用2个线程。
>压缩对象:100%(128/128),完成。书写对象:100%
>(144/144),50.16千磅,完成。总计144(增量23),重复使用0(增量0)
> 
>------>Heroku接受推送
>----->检测到Ruby/Rails应用程序
>----->使用Bundler版本1.1.rc安装依赖项
>正在运行:bundle安装--无开发:test--路径供应商/bundle--部署
>从中获取gem元数据http://rubygems.org/.......
>安装耙子(0.9.2.2)
>安装multi_json(1.0.3)
>安装activesupport(3.1.1)
>安装生成器(3.0.0)
>安装i18n(0.6.0)
>安装activemodel(3.1.1)
>安装erubis(2.7.0)
>安装机架(1.3.5)
>安装机架缓存(1.1)
>安装机架安装(0.8.3)
>安装机架测试(0.6.1)
>安装远足(1.2.1)
>安装倾斜装置(1.3.3)
>安装链轮(2.0.3)
>安装actionpack(3.1.1)
>安装mime类型(1.17.2)
>安装polyglot(0.3.2)
>安装树梢(1.4.10)
>安装邮件(2.3.0)
>安装actionmailer(3.1.1)
>安装arel(2.2.1)
>安装tzinfo(0.3.30)
>安装activerecord(3.1.1)
>安装activeresource(3.1.1)
>安装coffee脚本源(1.1.2)
>安装execjs(1.2.9)
>安装coffee脚本(2.2.0)
>安装机架ssl(1.3.2)
>使用本机扩展安装json(1.6.1)
>安装rdoc(3.11)
>安装thor(0.14.6)
>安装栏杆(3.1.1)
>安装咖啡导轨(3.1.1)
>安装jquery rails(1.0.16)
>安装带有本机扩展的pg(0.11.0)
>使用捆绑机(1.1.rc)
>安装导轨(3.1.1)
>安装sass(3.1.10)
>安装sass导轨(3.1.4)
>**安装带有本机扩展的sqlite3(1.3.4)不幸的是,出现了一个致命错误。请将此错误报告给
>Bundler问题跟踪程序位于
> https://github.com/carlhuda/bundler/issues 这样我们就能修好它。
>谢谢**
>/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:483:“在构建扩展中的块中进行救援”:错误:未能构建gem本机
>分机。(Gem::Installer::ExtensionBuildError)
>/usr/local/bin/ruby extconf.rb
>正在检查sqlite3.h。。。不
>缺少sqlite3.h。尝试“端口安装sqlite3+通用”
>或“yum install sqlite3-devel”并检查共享库搜索路径(
>sqlite3共享库所在的位置)。
>***extconf.rb失败***
>由于某些原因无法创建Makefile,可能是缺少
>必要的库和/或标题。查看mkmf.log文件了解更多信息
>细节。您可能需要配置选项。
>提供的配置选项:
>--使用opt dir
>--不带opt dir
>--选择包含
>--不带opt include=${opt dir}/include
>--使用opt lib
>--不带opt lib=${opt dir}/lib
>--使用make prog
>--没有make prog
>--srcdir=。
>--克迪尔
>--ruby=/usr/local/bin/ruby
>--使用-sqlite3-dir
>--不带-sqlite3-dir
>--with-sqlite3-include
>--不带-sqlite3-include=${sqlite3 dir}/include
>--使用-sqlite3-lib
>--不带-sqlite3-lib=${sqlite3 dir}/lib
>--启用本地
>--禁用本地
>Gem文件仍将安装在/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.4中
>供检查。
>结果记录到/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out
>from/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:486:in'block in build_extensions'
>from/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in'each'
>来自/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in'build_extensions'
>来自/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:198:in'install'
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/source.rb:90:in
>“安装中的块”
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:78:in
>“保留路径”
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/source.rb:89:in
>“安装”
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:73:in
>'在安装中阻止\u gem\u从\u规范'
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:93:in
>“用“build”和“args”
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:72:in
>‘从_规范安装_gem_’
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:56:in
>‘奔跑中的障碍’
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:55:in
>“跑”
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/installer.rb:12:in
>“安装”
>来自/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in
>“安装”
>from/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in
>“跑”
>来自/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:“invoke_任务”中
>来自/tmp/build_272b7nu18wwh5/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib/b
group :production do
  gem 'pg'
end
group :development, :test do
  gem 'sqlite3'
end
git add Gemfile
git commit -m "Removed sqlite3 from Gemfile"
git push heroku master
group :production do    
    gem 'pg', '0.12.2'  
end  
group :development do  
    gem 'sqlite3', '1.3.4'  
end
git add Gemfile  
git commit -m "Put Sqlite3 into development in the Gemfile"  
git push heroku master  
gem 'pg', group: :production
gem 'sqlite3', group: :development