我的红宝石版本是1.9.3
我正在尝试将redmine项目配置到我的系统。
我安装了所有必需的宝石。但是,当我启动服务器时,它显示出一些错误。
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 3.2.22) was resolved to 3.2.22, which depends on
actionpack (= 3.2.22) was resolved to 3.2.22, which depends on
rack (~> 1.4.5)
poltergeist was resolved to 1.0.0, which depends on
capybara (~> 1.1) was resolved to 1.1.4, which depends on
rack (>= 1.0.0)
rack-openid was resolved to 1.4.2, which depends on
rack (>= 1.1.0)
poltergeist was resolved to 1.0.0, which depends on
capybara (~> 1.1) was resolved to 1.1.4, which depends on
rack-test (>= 0.5.4) was resolved to 0.6.3, which depends on
rack (>= 1.0)
我不知道该怎么做......我的机架版本是1.6.4
答案 0 :(得分:0)
您当前的版本应该适用于其他宝石,但如果您看到rails
取决于
rack (~> 1.4.5)
这意味着它需要rack
到1.4.0
之间1.4.9
的版本
<强>解决方案强>
在rack
Gemfile
的版本
gem 'rack', '~> 1.4.5'
或
删除大于1.4.9
gem uninstall rack
然后手动安装gem
gem install rack -v 1.4.5
答案 1 :(得分:-2)
请使用bundle install
安装所有必需的宝石