【发布时间】:2012-04-28 01:52:41
【问题描述】:
我在本地使用 sqlite 开发了一个应用程序,但现在想将其移至 Heroku,因此我将从现在开始使用 postgres。到目前为止,我不需要保留数据库,我只需要 Heroku 不要尝试安装 Sqlite,因为它会像这样爆炸:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/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.
我已经更改了我的 database.yml 文件并在我的 Gemfile 中将 'gem' "sqlite3" 切换为 'gem' "pg",但 heroku 仍然很生气。还有什么需要更改以便在我提交我的应用程序时它不会尝试安装 sqlite3?
【问题讨论】:
标签: ruby-on-rails sqlite postgresql heroku