【问题标题】:error : gem install sqlite3 -v '1.3.11'` succeeds before bundling错误: gem install sqlite3 -v '1.3.11'` 在捆绑之前成功
【发布时间】:2016-01-27 08:22:31
【问题描述】:

当我尝试部署我的 rails 应用程序时,日志显示以下错误。

EBUG [4b7b573d]     An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [----]: bundle exit status: 5
bundle stdout: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
bundle stderr: Nothing written

SSHKit::Command::Failed: bundle exit status: 5
bundle stdout: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
bundle stderr: Nothing written

Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing as [------]: bundle exit status: 5
bundle stdout: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
bundle stderr: Nothing written

我的宝石文件

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

我该如何解决这个问题?为什么会这样?

【问题讨论】:

    标签: ruby-on-rails-4 nginx deployment unicorn


    【解决方案1】:

    您是否尝试过在 config/deploy.rb 中添加设置行:

    set :bundle_without, [:development, :test]
    

    【讨论】:

      猜你喜欢
      • 2016-08-28
      • 1970-01-01
      • 2017-08-27
      • 1970-01-01
      • 2015-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-19
      相关资源
      最近更新 更多