Gem 关于 Heroku 的错误 log 显示缺失 sqlite3.h,请大家帮忙....

arc_start · 2015年07月31日 · 最后由 arc_start 回复于 2015年07月31日 · 1832 次阅读

gemfile 如下,系统是 ubunt 15.x.x

group :development, :test do
  gem 'sqlite3'
end

group :production do
  gem 'pg'
  gem 'rails_12factor'
end

错误日志如下:

remote:        continue.
remote:        Make sure that `gem install sqlite3 -v '1.3.10'` succeeds before bundling.
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !     
remote:  !     Detected sqlite3 gem which is not supported on Heroku.
remote:  !     https://devcenter.heroku.com/articles/sqlite3
remote:  !
remote: 
remote:  !     Push rejected, failed to compile Ruby app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to powerful-falls-8764.

能帮下嘛..刚入手没几天,好艰难

Log 里面请你去看这篇文章啊, https://devcenter.heroku.com/articles/sqlite3。看了就明白了。

Detected sqlite3 gem which is not supported on Heroku.

Heroku 不支持 sqlite3 gem,这应该它只读文件系统有关。

#1 楼 @zillou #2 楼 @huacnlee 哈哈,知道为什么啦,就是要加 bundle install --without production

需要 登录 后方可回复, 如果你还没有账号请 注册新账号