【问题标题】:Impossible to start Sidekiq无法启动 Sidekiq
【发布时间】:2017-02-23 09:41:00
【问题描述】:

在 Centos 上安装 Sidekiq 后,我尝试启动 Sidekiq(它由 Sidekiq 使用),使用命令:

bundle exec sidekiq

然后我得到:

tupromail@be-s2534-msl:~/cuttlefish-master$ bundle exec sidekiq
Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
bundler: command not found: sidekiq
Install missing gem executables with `bundle install`

重点是安装了Sidekiq,运行的时候就看到了

bundle install

我明白了:

Using sidekiq 3.3.0

另外,似乎有 Sidekiq 可执行文件:

tupromail@be-s2534-msl:~/cuttlefish-master$ gem uninstall sidekiq
Remove executables:
    sidekiq, sidekiqctl

in addition to the gem? [Yn]

有什么想法吗?

【问题讨论】:

  • 使用此命令gem list sidekiq列出版本。
  • 版本 3.3.0:tupromail@be-s2534-msl:~/cuttlefish-master$ gem list sidekiq *** LOCAL GEMS *** sidekiq (3.3.0)
  • 您是否按照错误消息中的建议尝试过gem install bundler
  • 安装包后出现什么错误?
  • 在 gem install sidekiq 之后,我尝试运行 sidekiq:bundle exec sidekiq,然后我得到:bundler: command not found: sidekiq

标签: ruby-on-rails centos rubygems sidekiq


【解决方案1】:

将捆绑器更新到最新版本,然后:

bundle install sidekiq

然后再试一次,出现这个问题是因为 bundler 版本与 Gemfile.lock 中的不一样

【讨论】:

    猜你喜欢
    • 2016-01-03
    • 1970-01-01
    • 1970-01-01
    • 2014-08-27
    • 2014-10-10
    • 2014-07-23
    • 2012-03-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多