本文介绍了无法将我的代码推送给heroku主人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助
非常感谢
github链接:
系统信息:
ruby 1.9.3p448(2013-06-27修订版41675)[x86_64-darwin12.4.1]
Rails 4.0.0
运行 ruby -v
附加到终端... up, run.9339
$ b $ ruby 1.9.2p290(2011-07-09修订版32553)[x86_64-linux]
错误信息:
计数对象:83,完成。
使用多达4个线程的增量压缩。
Compressin ** strong text ** g objects:100%(72/72),done。
写作对象:100%(83/83),16.26 KiB,完成。
总计83(增量16),重用0(增量0)
-----> Ruby / Rails应用程序检测到
----->使用Ruby版本:ruby-1.9.3
----->使用Bundler版本1.3.2安装依赖项
运行:bundle install --without development:test --path vendor / bundle --binstubs vendor / bundle / bin --deployment
从https获取gem元数据:/ /rubygems.org/ .........
从https://rubygems.org/获取gem元数据..
安装rake(10.1.0)
安装i18n( 0.6.5)
安装minitest(4.7.5)
安装multi_json(1.7.9)
安装原子(1.1.13)
安装thread_safe(0.1.2)
安装tzinfo(0.3.37)
安装主动支持(4.0.0)
安装生成器(3.1.4)
安装erubis(2.7.0)
安装机架(1.5 .2)
安装rack-test(0.6.2)
安装actionpack(4.0.0)
安装mime-types(1.25)
安装polyglot(0.3.3)
安装树梢(1.4.15)
安装邮件(2.5.4)
Ins (4.0.0)
安装activemodel(4.0.0)
安装activerecord-deprecated_finders(1.0.3)
安装arel(4.0.0)
安装activerecord(4.0 .0)
安装coffee-script-source(1.6.3)
安装execjs(2.0.1)
安装coffee-script(2.2.0)
安装thor(0.18 .1)
安装railties(4.0.0)
安装咖啡栏(4.0.0)
安装hike(1.2.3)
安装jbuilder(1.5.1)
安装jquery-rails(3.0.4)
安装json(1.8.0)
安装pg(0.16.0)
使用bundler(1.3.2)
安装倾斜(1.4.1)
安装链轮(2.10.0)
安装链轮滑轨(2.0.0)
安装滑轨(4.0.0)
安装rdoc(3.12。 2)
安装sass(3.2.10)
安装sass-rails(4.0.0)
安装sdo c(0.3.20)
安装sqlite3(1.3.8)
** Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展。
/tmp/build_1xda9qa93kq4/vendor/ruby-1.9.3/bin/ruby extconf.rb **
检查sqlite3.h ...没有
sqlite3.h缺失。试试'port install sqlite3 + universal'
或'yum install sqlite-devel'并检查你的共享库搜索路径(sqlite3共享库所在的
位置)。
*** extconf.rb失败***
由于某些原因无法创建Makefile,可能缺少
必需的库和/或头文件。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。
提供的配置选项:
--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 = / tmp / build_1xda9qa93kq4 / vendor / ruby-1.9.3 / 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文件将保持安装在/ tmp / build_1xda9qa93kq4 / vendor / bundle / ruby / 1.9.1 / gems / sqlite3-1.3.8进行检查。
结果记录到/tmp/build_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8/ext/sqlite3/gem_make.out
安装sqlite3时出错(1.3。 8)和Bundler无法继续。
确保`gem install sqlite3 -v'1.3.8'`捆绑成功。
Bundler输出:从https://rubygems.org / .........
获取gem元数据从https://rubygems.org/获取gem元数据..
安装rake(10.1.0)
安装i18n(0.6.5)
安装minitest(4.7.5)
安装multi_json(1.7.9)
安装原子(1.1.13) )
安装thread_safe(0.1.2)
安装tzinfo(0.3.37)
安装activesupport(4.0.0)
安装生成器(3.1.4)
安装erubis(2.7.0)
安装rack(1.5.2)
安装rack-test(0.6.2)
安装actionpack(4.0.0)
安装mime-types( 1.25)
安装polyglot(0.3.3)
安装treetop(1.4.15)
安装邮件(2.5.4)
安装actionmailer(4.0.0)
安装activemodel(4.0.0)
安装activerecord-deprecated_finders(1.0.3)
安装arel (4.0.0)
安装activerecord(4.0.0)
安装coffee-script-source(1.6.3)
安装execjs(2.0.1)
安装coffee-script (2.2.0)
安装thor(0.18.1)
安装railties(4.0.0)
安装咖啡栏(4.0.0)
安装加息(1.2.3 )
安装jbuilder(1.5.1)
安装jquery-rails(3.0.4)
安装json(1.8.0)
安装pg(0.16.0)
使用打包机(1.3.2)
安装倾斜(1.4.1)
安装链轮(2.10.0)
安装链轮导轨(2.0.0)
安装导轨( 4.0.0)
安装rdoc(3.12.2)
安装sass(3.2.10)
安装sass-rails(4.0.0)
安装sdoc(0.3.20)
安装sqlite3(1.3.8)
** Gem :: Installer :: ExtensionBuildError:错误:无法构建gem原生扩展。
/tmp/build_1xda9qa93kq4/vendor/ruby-1.9.3/bin/ruby extconf.rb **
检查sqlite3.h ...否
sqlite3.h是失踪。试试'port install sqlite3 + universal'
或'yum install sqlite-devel'并检查你的共享库搜索路径(sqlite3共享库所在的
位置)。
*** extconf.rb失败***
由于某些原因无法创建Makefile,可能缺少
必需的库和/或头文件。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。
提供的配置选项:
--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 = / tmp / build_1xda9qa93kq4 / vendor / ruby-1.9.3 / 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文件将保持安装在/tmp/build_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8中进行检查。
结果记录到/tmp/build_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8/ext/sqlite3/gem_make.out
安装sqlite3时出错(1.3。 8)和Bundler无法继续。
确保`gem install sqlite3 -v'1.3.8'`捆绑成功。
!
!无法通过Bundler安装宝石。
!
!检测到Heroku不支持的sqlite3 gem。
! https://devcenter.heroku.com/articles/sqlite3
!
!推送被拒绝,未能编译Ruby / Rails应用程序
到[email protected]:ancient-savannah-7479.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将某些参考文献推送到'[email protected]:ancient-savannah-7479.git'
$ p
$ div class =h2_lin>解决方案
group:develppment,:test do
gem'sqlite3'
end
并添加
gem'pg'
给你Gemfile并在项目目录中运行 bundle
Heroku可以使用postgres
I tried to push my application to heroku but got some errors.
Please helpmany thanks
github link:https://github.com/zombie7158/testapp
system info:ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.1]
Rails 4.0.0
Running ruby -v
attached to terminal... up, run.9339
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
error info:
Counting objects: 83, done.
Delta compression using up to 4 threads.
Compressin**strong text**g objects: 100% (72/72), done.
Writing objects: 100% (83/83), 16.26 KiB, done.
Total 83 (delta 16), reused 0 (delta 0)
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.1.0)
Installing i18n (0.6.5)
Installing minitest (4.7.5)
Installing multi_json (1.7.9)
Installing atomic (1.1.13)
Installing thread_safe (0.1.2)
Installing tzinfo (0.3.37)
Installing activesupport (4.0.0)
Installing builder (3.1.4)
Installing erubis (2.7.0)
Installing rack (1.5.2)
Installing rack-test (0.6.2)
Installing actionpack (4.0.0)
Installing mime-types (1.25)
Installing polyglot (0.3.3)
Installing treetop (1.4.15)
Installing mail (2.5.4)
Installing actionmailer (4.0.0)
Installing activemodel (4.0.0)
Installing activerecord-deprecated_finders (1.0.3)
Installing arel (4.0.0)
Installing activerecord (4.0.0)
Installing coffee-script-source (1.6.3)
Installing execjs (2.0.1)
Installing coffee-script (2.2.0)
Installing thor (0.18.1)
Installing railties (4.0.0)
Installing coffee-rails (4.0.0)
Installing hike (1.2.3)
Installing jbuilder (1.5.1)
Installing jquery-rails (3.0.4)
Installing json (1.8.0)
Installing pg (0.16.0)
Using bundler (1.3.2)
Installing tilt (1.4.1)
Installing sprockets (2.10.0)
Installing sprockets-rails (2.0.0)
Installing rails (4.0.0)
Installing rdoc (3.12.2)
Installing sass (3.2.10)
Installing sass-rails (4.0.0)
Installing sdoc (0.3.20)
Installing sqlite3 (1.3.8)
**Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/tmp/build_1xda9qa93kq4/vendor/ruby-1.9.3/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=/tmp/build_1xda9qa93kq4/vendor/ruby-1.9.3/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_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8 for inspection.
Results logged to /tmp/build_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8/ext/sqlite3/gem_make.out
An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
Bundler Output: Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.1.0)
Installing i18n (0.6.5)
Installing minitest (4.7.5)
Installing multi_json (1.7.9)
Installing atomic (1.1.13)
Installing thread_safe (0.1.2)
Installing tzinfo (0.3.37)
Installing activesupport (4.0.0)
Installing builder (3.1.4)
Installing erubis (2.7.0)
Installing rack (1.5.2)
Installing rack-test (0.6.2)
Installing actionpack (4.0.0)
Installing mime-types (1.25)
Installing polyglot (0.3.3)
Installing treetop (1.4.15)
Installing mail (2.5.4)
Installing actionmailer (4.0.0)
Installing activemodel (4.0.0)
Installing activerecord-deprecated_finders (1.0.3)
Installing arel (4.0.0)
Installing activerecord (4.0.0)
Installing coffee-script-source (1.6.3)
Installing execjs (2.0.1)
Installing coffee-script (2.2.0)
Installing thor (0.18.1)
Installing railties (4.0.0)
Installing coffee-rails (4.0.0)
Installing hike (1.2.3)
Installing jbuilder (1.5.1)
Installing jquery-rails (3.0.4)
Installing json (1.8.0)
Installing pg (0.16.0)
Using bundler (1.3.2)
Installing tilt (1.4.1)
Installing sprockets (2.10.0)
Installing sprockets-rails (2.0.0)
Installing rails (4.0.0)
Installing rdoc (3.12.2)
Installing sass (3.2.10)
Installing sass-rails (4.0.0)
Installing sdoc (0.3.20)
Installing sqlite3 (1.3.8)
**Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/tmp/build_1xda9qa93kq4/vendor/ruby-1.9.3/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=/tmp/build_1xda9qa93kq4/vendor/ruby-1.9.3/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_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8 for inspection.
Results logged to /tmp/build_1xda9qa93kq4/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8/ext/sqlite3/gem_make.out
An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Detected sqlite3 gem which is not supported on Heroku.
! https://devcenter.heroku.com/articles/sqlite3
!
! Push rejected, failed to compile Ruby/Rails app
To [email protected]:ancient-savannah-7479.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:ancient-savannah-7479.git'
解决方案
just delete it
group :develppment, :test do
gem 'sqlite3'
end
and add
gem 'pg'
to you Gemfile and run bundle
in project dir
Heroku works with postgres
这篇关于无法将我的代码推送给heroku主人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!