Windows + RoR:Gem 安装,运行 rake gems:install,找不到 gem

发布于 2024-12-03 12:19:15 字数 1184 浏览 2 评论 0原文

$> gem install multi_json
<Lots of invalid gemspec warnings>
Successfully installed multi_json-1.0.3
.
.
.
$> bundle exec rake gems:install
<Lots of invalid gemspec warnings>
    ERROR: Error installing searchlogic:
           activesupport requires multi_json (~> 1.0)

使用Windows XP 红宝石 1.8.7 导轨2.3.8 Gem 1.8.10

GemFile:

# app
#gem "mysql", "2.7"
gem "sqlite3"
gem "lockfile"
gem "ssl_requirement", "0.1.0"
gem "attr_encrypted", "1.1.2"
# gem "searchlogic", "2.4.28", :require => nil
gem "will_paginate", "2.3.14", :require => nil
gem "paperclip"


gem "garb", "0.7.6"
gem "delayed_job", "2.0.3"
gem "httparty", "0.5.2"


gem "pony", "1.1"
gem "friendly_id", "3.0.6"
gem "stringex", "1.1.0"
gem "i18n", "0.4.2"

gem "sms_fu", "1.1.1"

# gems needed for windows
gem "spruz", "0.2.13", :git => "git://github.com/flori/spruz.git"
gem "json_pure", "~> 1.5.4"

在environment.rb中

 require "bundler/setup"
  Bundler.require(:default)
  require "will_paginate"
  config.gem "searchlogic", :version => "2.4.28"  

我已经运行了捆绑安装。它说我的包裹已经完成!...但它撒谎...太难了。

gt; gem install multi_json
<Lots of invalid gemspec warnings>
Successfully installed multi_json-1.0.3
.
.
.
gt; bundle exec rake gems:install
<Lots of invalid gemspec warnings>
    ERROR: Error installing searchlogic:
           activesupport requires multi_json (~> 1.0)

Using Windows XP
Ruby 1.8.7
Rails 2.3.8
Gem 1.8.10

GemFile:

# app
#gem "mysql", "2.7"
gem "sqlite3"
gem "lockfile"
gem "ssl_requirement", "0.1.0"
gem "attr_encrypted", "1.1.2"
# gem "searchlogic", "2.4.28", :require => nil
gem "will_paginate", "2.3.14", :require => nil
gem "paperclip"


gem "garb", "0.7.6"
gem "delayed_job", "2.0.3"
gem "httparty", "0.5.2"


gem "pony", "1.1"
gem "friendly_id", "3.0.6"
gem "stringex", "1.1.0"
gem "i18n", "0.4.2"

gem "sms_fu", "1.1.1"

# gems needed for windows
gem "spruz", "0.2.13", :git => "git://github.com/flori/spruz.git"
gem "json_pure", "~> 1.5.4"

in environment.rb

 require "bundler/setup"
  Bundler.require(:default)
  require "will_paginate"
  config.gem "searchlogic", :version => "2.4.28"  

I've already ran bundle install. It says my bundle is complete!... but it lies... so hard coroe.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单身情人 2024-12-10 12:19:15

尝试安装 gem,

bundle install

而不是

bundle exec rake gems:install

try to install the gems with

bundle install

instead of

bundle exec rake gems:install
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文