-3
   --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_3dsid22g5kvhv/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7 for inspection.
   Results logged to /tmp/build_3dsid22g5kvhv/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out
   An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue.
   Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling.

 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app
4

2 回答 2

0

如果您在系统上配置了 postgre,那么您可以替换

宝石“sqlite3”

宝石“pg”

否则,添加

组:开发做gem“sqlite3”结束组:生产做gem“pg”结束

并运行捆绑为

捆绑安装——不生产

然后推它。

于 2013-02-04T10:06:00.457 回答
0

heroku 使用 postgresql,所以如果你打算部署到 heroku,你也应该在开发时使用它。在您的 Gemfile 中,删除该行gem 'sqlite3'并将其替换为gem 'pg'. 您需要先安装 pg 服务器。

于 2013-02-04T07:41:02.253 回答