Windows + RoR:Gem 安装,运行 rake gems:install,找不到 gem
$> 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试安装 gem,
而不是
try to install the gems with
instead of