0

我有这个应用程序使用 1.9.2 和 rails 3.2,今天我将 ruby​​ 版本更改为 1.9.3(使用 rbenv),然后一切都出错了

我的gemfile上有这个

组:开发做gem'sqlite3'结束

group :production do gem 'pg' end

每次我跑:

捆绑安装——不生产

现在什么都没有发生,当我这样做时

git push heroku 大师

我犯了同样的错误:

Installing sqlite3 (1.3.5) 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 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:

它显然试图安装 sqlite,但即使我从我的 Gemfile 中删除 sqlite gem 也没有任何反应,似乎问题出在 heroku 但现在我无能为力

希望有人可以帮助我,因为我正在尝试做

heroku db:拉

正因为如此,我想添加水龙头宝石,然后我按照本教程

http://railsapps.github.com/rails-heroku-tutorial.html

而且我在heroku中更改了ruby的版本,现在我认为问题出在rbenv但我不确定

提前致谢

哈维尔Q

4

1 回答 1

0

实际上,为了获得所有数据库,我只需要做:

gem install taps

而不是把它放到 Gemfile 中,因为它需要 sqlite3

于 2012-03-23T17:05:53.510 回答