![Upstart Ruby 版本问题](https://linux22.com/image/1133149/Upstart%20Ruby%20%E7%89%88%E6%9C%AC%E9%97%AE%E9%A2%98.png)
我正在尝试让 Upstart 启动 Sidekiq (https://github.com/mperham/sidekiq/wiki/Deploying-to-Ubuntu)。我可以手动启动它,但 Upstart 脚本中的相同命令失败。我已将脚本的输出传送到日志文件:
将我的脚本的输出传送到日志:
usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/ubuntu/staging/current/bin/sidekiq:14:in `<main>'
所以我有:
$ which -a ruby
/home/ubuntu/.rbenv/shims/ruby
/usr/bin/ruby
$ rbenv versions
system
* 2.2.3 (set by /home/ubuntu/.rbenv/version)
我的 rails 应用程序使用的是 2.2.3,所以我可以手动或通过 rbenv(rbenv 卸载系统)删除 1.9.1 版本吗?