薄版本与gemfile试图安装话语不匹配

时间:2013-04-17 12:43:34

标签: ruby thin discourse

我正在尝试安装精简版1.5.0但是默认情况下,当我安装gem install thin时安装1.5.1然后我收到此错误

>> Writing PID to tmp/pids/thin.0.pid
>> Using rack adapter
>> Exiting!
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup': You have already activated thin 1.5.1, but your Gemfile requires thin 1.5.0. Using bundle exec may solve this. (Gem::LoadError)
        from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'

2 个答案:

答案 0 :(得分:1)

可能有点矫枉过正,但尝试删除Gemfile.lock,更改Gemfile中的精简版本并运行bundle install

答案 1 :(得分:0)

我跑了

gem uninstall thin

列出了已安装内容的版本。我卸载了1.5.1以解决问题。