【问题标题】:An error occurred while installing sqlite3 (1.3.13), and Bundler cannot continue安装 sqlite3 (1.3.13) 时出错,Bundler 无法继续
【发布时间】:2018-09-06 12:59:15
【问题描述】:

我正在使用 mac 和 cloud9 IDE 每次我尝试“git push heroku master” 我收到此错误

remote:        An error occurred while installing sqlite3 (1.3.13), and 
               Bundler cannot
remote:        continue.
remote:        Make sure that `gem install sqlite3 -v '1.3.13'` 
               succeeds before bundling.

但是我的 gem 文件是这样设置的

group :development, :test do
    gem 'sqlite3', '1.3.12'
    gem 'byebug', '9.0.0', platform: :mri
end

group :development do
    gem 'web-console', '3.1.1'
    gem 'listen', '3.0.8'
    gem 'spring', '1.7.2'
    gem 'spring-watcher-listen', '2.0.0'
end

group :production do
    gem 'pg', '0.18.4'
end

我也跑了

gem install sqlite3 -v '1.3.13'

命令然后重新捆绑然后推送到 heroku master 只是为了得到同样的东西

【问题讨论】:

  • 您是否在Gemfile 中进行了更改(添加gem 'pg')并确保提交所有更改?

标签: ruby-on-rails git heroku sqlite


【解决方案1】:

@KLikavec,

那是因为 Heroku 不允许使用 sqlite。他建议我们改用 postgresql。请参考另一个有同样问题的帖子,看看我的回答。它应该可以帮助您解决问题。

Heroku: Failed to install gems via Bundler

【讨论】:

    【解决方案2】:

    待办事项

    apt-get install libsqlite3-dev

    然后再次运行

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-14
      • 2013-03-11
      • 2013-07-21
      • 2022-01-20
      • 2017-02-09
      • 2018-09-08
      • 2020-01-16
      相关资源
      最近更新 更多