From: oren Date: 2009-08-16T06:20:05+09:00 Subject: Re: ruby 1.9 side by side with 1.8 I found a solution: sudo ~/.ruby_versions/ruby-1.9.1-p129/bin/gem uninstall but I am looking for a way to simply use: 'sudo gem', so i can use my 'rake gems:insall' I found this gem - http://github.com/lsegal/gem-sane-binary/tree/master but not sure it's the right direction. I started following the steps: sudo mv /usr/bin/ruby /usr/bin/ruby18 sudo mv /usr/bin/irb /usr/bin/irb18 sudo mv /usr/bin/gem /usr/bin/gem18 but i am not sure what to do in the next step: "Then create your ruby/irb/gem symlinks to point to whichever Ruby install you're using: ln -fs /usr/local/bin/ruby19 /usr/local/bin/ruby" btw, here is the output of gem env: RubyGems Environment: - RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.9.1 (2009-05-12 patchlevel 129) [i686-linux] - INSTALLATION DIRECTORY: /home/oren/.gem/ruby/1.9 - RUBY EXECUTABLE: /home/oren/.ruby_versions/ruby-1.9.1-p129/bin/ ruby - EXECUTABLE DIRECTORY: /home/oren/.gem/ruby/1.9/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /home/oren/.gem/ruby/1.9 - /home/oren/.gem/ruby/1.9.1 - /home/oren/.ruby_versions/ruby-1.9.1-p129/lib/ruby/gems/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.org/", "http:// gems.github.com"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com and when i switch back to 1.8 with use_ruby_187: RubyGems Environment: - RUBYGEMS VERSION: 1.3.3 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] - INSTALLATION DIRECTORY: /home/oren/.gem/ruby/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /home/oren/.gem/ruby/1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /home/oren/.gem/ruby/1.8 - /usr/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.org/", "http:// gems.github.com"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com