QA@IT

How to set gemdir if use rvm?

1542 PV

$ rvm use system
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

$ rvm gemset list_all

gemsets for ruby-1.8.7-p374 (found in /home/username/.rvm/gems/ruby-1.8.7-p374)
=> (default)
   global

gemsets for ruby-2.0.0-p247 (found in /home/username/.rvm/gems/ruby-2.0.0-p247)
=> (default)
   global

gemsets for ruby-1.9.3-p448 (found in /home/username/.rvm/gems/ruby-1.9.3-p448)
=> (default)
   global

$ rvm gemdir 1.8.7

$ gem env

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.17
  - RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/username/.rvm/gems/ruby-2.0.0-p247
  - RUBY EXECUTABLE: /home/username/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
  - EXECUTABLE DIRECTORY: /home/username/.rvm/gems/ruby-2.0.0-p247/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/username/.rvm/gems/ruby-2.0.0-p247
     - /home/username/.rvm/gems/ruby-2.0.0-p247@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

After run rvm gemdir 1.8.7,the result still /home/username/.rvm/gems/ruby-2.0.0-p247,how to change to ruby-1.8.7-p374?

ウォッチ

この質問への回答やコメントをメールでお知らせします。