2012-02-23 36 views
2

可能重複:
Why are gems installed in a 1.9.1 directory when my Ruby version is different than 1.9.1?爲什麼我的寶石 「安裝目錄:」 ...... 1.9.1當 「RUBY版本:」 是1.9.3

我已經通過下載源代碼和編譯,在RHEL 6系統(Linux 2.6.32-122.el6.x86_64)上安裝Ruby 1.9.3-p0。我沒有使用任何選項。只需./configure,makemake 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目錄/紅寶石/寶石/ 1.9.1」。不應該是「1.9.3」?

我運行了gem update --system,在我這樣做之前和之後都輸出了「1.9.1」。

+1

摘要:標準庫沒有移動,所以默認的Ruby路徑仍然包含1.9.1。 – coreyward 2012-02-23 02:47:07

+0

另請參閱http://stackoverflow.com/questions/8564210/why-are-we-installing-ruby-1-9-2-1-9-3-gems-into-a-1-9-1-folder/8565831#8565831 – knut 2013-01-05 21:36:08

回答

2

我不這麼認爲。我有Ruby 1.9.2,目錄仍然是1.9.1。我認爲這是爲了與以前的小版本的寶石向後兼容。

相關問題