gpt4 book ai didi

ruby-on-rails - Bundler 找不到 gem "rack": 的兼容版本

转载 作者:数据小太阳 更新时间:2023-10-29 08:32:07 25 4
gpt4 key购买 nike

我是 Ruby 的新手,但如果我不想安装 Redmine,实际上我不需要它。我正在按照 http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_on_CentOS_Detailed 中的说明进行操作

我已经使用

安装了 ruby​​ 1.9
rvm install 1.9.3

和 ruby 使用...

sudo yum install rubygems

然后进入创建 Gemfile 并在其中注册这些 gems 的部分

# file: /var/www/redmine/Gemfile
source "http://rubygems.org"
gem "rake", "0.8.3"
gem "rack", "1.1.0"
gem "i18n", "0.4.2"
gem "rubytree", "0.5.2", :require => "tree"
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql"
gem "coderay", "~>0.9.7"

我的文件看起来像...

source 'https://rubygems.org'
gem "rake", "0.8.3"
gem "rack", "1.1.0"
gem "i18n", "0.4.2"
gem "rubytree", "0.5.2", :require => "tree"
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql"


gem "rails", "3.2.15"
gem "jquery-rails", "~> 2.0.2"
gem "coderay", "~> 1.1.0"
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
gem "builder", "3.0.0"

# Optional gem for LDAP authentication

当我运行时

bundle install

它给了我...

Please configure your config/database.yml first
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 3.2.15) ruby depends on
rack (~> 1.4.5) ruby

rack (1.1.0)

我不知道该怎么办。

最佳答案

您更新了需要 rack (1.4.5) 的 rails 版本,之前的版本被锁定在 rack (1.1.0) 上,以便快速修复

删除gemfile.lock并再次运行bundle install

希望它能解决您的问题...

关于ruby-on-rails - Bundler 找不到 gem "rack": 的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22704671/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com