-X19 does not change GEM PATHS #1862

Closed
postmodern opened this Issue Aug 15, 2012 · 2 comments

Projects

None yet

2 participants

Contributor

Specifying the -X19 option should cause RubyGems to use different Gem installation directories, to prevent linking issues with C extensions.

$ rbx -X19 -S gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.3 (yyyy-mm-dd patchlevel 0) [x86_64-unknown-linux-gnu]
  - INSTALLATION DIRECTORY: /home/hal/.gem/rubinius/1.8.7
  - RUBYGEMS PREFIX: /usr/local/rubinius
  - RUBY EXECUTABLE: /usr/local/rubinius/bin/rbx
  - EXECUTABLE DIRECTORY: /home/hal/.gem/rubinius/1.8.7/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
    - x86_64-rubinius-2.0
  - GEM PATHS:
     - /home/hal/.gem/rubinius/1.8.7
     - /usr/local/rubinius/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-rdoc"
  - REMOTE SOURCES:
     - http://rubygems.org/
Owner

It actually does:

$ ./bin/rbx -X19 gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.3 (yyyy-mm-dd patchlevel 0) [x86_64-apple-darwin12.0.0]
  - INSTALLATION DIRECTORY: /Users/dirkjan/Documents/projects/rubinius/gems/1.9
  - RUBYGEMS PREFIX: /Users/dirkjan/Documents/projects/rubinius
  - RUBY EXECUTABLE: /Users/dirkjan/Documents/projects/rubinius/bin/rbx
  - EXECUTABLE DIRECTORY: /Users/dirkjan/Documents/projects/rubinius/gems/1.9/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-12
    - x86_64-rubinius-2.0
  - GEM PATHS:
     - /Users/dirkjan/Documents/projects/rubinius/gems/1.9
     - /Users/dirkjan/.gem/rbx/1.9
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
$ ./bin/rbx gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.8.7 (yyyy-mm-dd patchlevel 0) [x86_64-apple-darwin12.0.0]
  - INSTALLATION DIRECTORY: /Users/dirkjan/Documents/projects/rubinius/gems/1.8
  - RUBYGEMS PREFIX: /Users/dirkjan/Documents/projects/rubinius
  - RUBY EXECUTABLE: /Users/dirkjan/Documents/projects/rubinius/bin/rbx
  - EXECUTABLE DIRECTORY: /Users/dirkjan/Documents/projects/rubinius/gems/1.8/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-12
    - x86_64-rubinius-2.0
  - GEM PATHS:
     - /Users/dirkjan/Documents/projects/rubinius/gems/1.8
     - /Users/dirkjan/.gem/rbx/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

Are you using any tool such as rvm, rbenv or anything else that explicitly overrides the GEM_PATHS?

Contributor

Double checked, and it was errant GEM_HOME / GEM_PATH env variables. Now I'm just waiting on #1861, and chruby will be able to support switching to Rubinius in 1.9 mode.

@postmodern postmodern closed this Aug 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment