为什么我的宝石“安装目录:" ... 1.9.1当"RUBY VERSION:"是1.9.3 [英] Why is my gem "INSTALLATION DIRECTORY:" ...1.9.1 when the "RUBY VERSION:" is 1.9.3

查看:62
本文介绍了为什么我的宝石“安装目录:" ... 1.9.1当"RUBY VERSION:"是1.9.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:

Possible Duplicate:
Why are gems installed in a 1.9.1 directory when my Ruby version is different than 1.9.1?

我已经通过下载源代码并进行编译,在RHEL 6系统(Linux 2.6.32-122.el6.x86_64)上安装了Ruby 1.9.3-p0.我没有使用任何选项.仅./configuremakemake install.

I've installed Ruby 1.9.3-p0 on an RHEL 6 system (Linux 2.6.32-122.el6.x86_64) by downloading the source and compiling. I didn't use any options. Just ./configure, make, and make install.

当我运行gem environment时,我得到...

When I run gem environment I get...

$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.17
  - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.9.1
     - /root/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

请注意对"/usr/local/lib/ruby​​/gems/ 1.9.1 "的引用.那不是" 1.9.3 "吗?

Notice the references to "/usr/local/lib/ruby/gems/1.9.1". Shouldn't that be "1.9.3"?

我运行了gem update --system,并且在执行此操作之前和之后都输出"1.9.1".

I ran gem update --system, and it output "1.9.1" both before and after I did so.

推荐答案

我不这么认为.我有Ruby 1.9.2,目录仍然是1.9.1.我认为这是为了与以前的次要版本的宝石向后兼容.

I don't think so. I have Ruby 1.9.2, and the directory is still 1.9.1. I think this is for backward compatibly with gems from previous minor versions.

这篇关于为什么我的宝石“安装目录:" ... 1.9.1当"RUBY VERSION:"是1.9.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆