可能重复:
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。我没有使用任何选项。只需./configure
,make
和make install
。
当我跑gem environment
时,我得到......
$ 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 ”吗?
我跑gem update --system
,在我这样做之前和之后输出“1.9.1”。
答案 0 :(得分:2)
我不这么认为。我有Ruby 1.9.2,目录仍然是1.9.1。我认为这是为了与以前的次要版本中的宝石向后兼容。