From: ara.t.howard@... Date: 2006-02-14T12:23:30+09:00 Subject: Re: gem help On Tue, 14 Feb 2006, Jim Weirich wrote: i should have included to complete patched 'gem' script: #!/usr/bin/env ruby require 'rubygems' Gem.manage_gems required_version = Gem::Version::Requirement.new(">= 1.8.0") unless required_version.satisfied_by?(Gem::Version.new(RUBY_VERSION)) puts "Expected Ruby Version #{required_version}, was #{RUBY_VERSION}" exit(1) end # We need to preserve the original ARGV to use for passing gem options # to source gems. If there is a -- in the line, strip all options after # it...its for the source building process. args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")] # # munge rbconfig from any command line or environment kv pair # kvs = [] re = %r/^ \s* ([^=\s]+) \s* = \s* ([^\s]+) \s* $/x args.delete_if{|arg| (m = re.match(arg)) and (kvs << m.to_a.last(2))} ENV::each{|k,v| (k =~ %r/^GEM_/) and (kvs << [k.delete('GEM_'), v])} unless kvs.empty? require 'rbconfig' kvs.each{|k,v| Config::CONFIG[k] = v} end Gem::GemRunner.new.run(args) not that env settings affect the install as well. so one can do GEM_BINDIR=/usr/local/bin gem install somelib.gem regards. -a -- judge your success by what you had to give up in order to get it. - h.h. the 14th dali lama