【问题标题】:Latest gem not installing最新的 gem 没有安装
【发布时间】:2013-06-22 02:01:41
【问题描述】:

我们正在尝试安装最新版本的 Plucky 以配合我们的 Mongo 安装,但运行 bundle update 不会将 Plucky gem 更新到最新版本,即 0.6.3。由于某种原因,我们的 gem 版本保持在 0.5.2。

我们同时运行了bundle updatebundle update plucky

宝石文件:

gem 'mongo'
gem 'mongo_mapper'
gem 'whois'
gem 'bson_ext'
gem 'bson'
gem 'newrelic_rpm'
gem 'rpm_contrib'

命令和输出:

[root@mongo]# bundle list
Gems included by the bundle:
  * actionmailer (3.2.12)
  * actionpack (3.2.12)
  * activemodel (3.2.12)
  * activerecord (3.2.12)
  * activeresource (3.2.12)
  * activesupport (3.2.12)
  * arel (3.0.2)
  * bson (1.9.0)
  * bson_ext (1.9.0)
  * builder (3.0.4)
  * bundler (1.3.1)
  * coffee-rails (3.2.2)
  * coffee-script (2.2.0)
  * coffee-script-source (1.6.2)
  * erubis (2.7.0)
  * execjs (1.4.0)
  * hike (1.2.3)
  * i18n (0.6.4)
  * journey (1.0.4)
  * jquery-rails (3.0.1)
  * json (1.8.0)
  * mail (2.4.4)
  * mime-types (1.23)
  * mongo (1.9.0)
  * mongo_mapper (0.12.0)
  * multi_json (1.7.7)
  * mysql2 (0.3.11)
  * newrelic_rpm (3.6.3.111)
  * plucky (0.5.2)
...


[root@mongo]# bundle update
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0)
Using i18n (0.6.4)
Using multi_json (1.7.7)
Using activesupport (3.2.12)
Using builder (3.0.4)
Using activemodel (3.2.12)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.12)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.4.4)
Using actionmailer (3.2.12)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.12)
Using activeresource (3.2.12)
Using bson (1.9.0)
Using bson_ext (1.9.0)
Using bundler (1.3.1)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.0)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.12)
Using coffee-rails (3.2.2)
Using jquery-rails (3.0.1)
Using mongo (1.9.0)
Using plucky (0.5.2)
...
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
[root@mongo]#

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 rubygems bundle mongomapper


    【解决方案1】:

    你应该先安装 plucky:

    gem install plucky

    然后将以下行添加到您的 Gemfile:

    gem 'plucky', '~> 0.6.3'

    您对'~> 0.6.3' 部分的偏好。你可以选择gem 'plucky', '0.6.3'

    如果这不起作用,请添加评论。

    【讨论】:

    • 嗯,它仍然无法正常工作。我们也更新了我们的 gemfile。还有其他建议吗?
    • 会发生这种情况:C:\Sites\x>bundle update 从rubygems.org获取gem元数据............从rubygems.org获取gem元数据..解决依赖项...... ......Bundler 找不到 gem“plucky”的兼容版本:在 Gemfile 中:mongo_mapper (>= 0) x86-mingw32 依赖于 plucky (= 0.1.1) x86-mingw32 plucky (0.6. 3) Bundler 找不到 gem "tilt" 的兼容版本:在 Gemfile 中:sass-rails (~> 3.2.3) x86-mingw32 依赖于倾斜 (~> 1.3) x86-mingw32 rails (= 3.2.12) x86- mingw32 依赖于倾斜 (1.1)
    【解决方案2】:

    Plucky 不在您的 gemfile 中,所以它必须是一个依赖项。几乎所有 gem 都会为依赖项指定一个版本。要求 plucky 的宝石可能要求 0.5.2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-31
      相关资源
      最近更新 更多