From: Andrew Goodnough Date: 2009-01-17T04:23:29+09:00 Subject: Re: RubyGem, find path of installed gem through ruby. Tom Cloyd wrote: > Aaron Smith wrote: >> found it. try this: >> >> $ irb >> $ require "rubygems" >> $ puts Gem.default_path >> >> -A >> > Super - easier. I do get 2 paths, though - > /home/tomc/.gem/ruby/1.8 > /usr/lib/ruby/gems/1.8 > > So you'll still have to locate and extract, but that's nothing (and > maybe your install is set up differently...?) > Thanks for this thread - exactly what I needed as well. I think code to find the particular library should try prepending the paths returned from Gem.default_path in order they are returned, as a gem installed in a user directory should trump a system gem. Andy -- Posted via http://www.ruby-forum.com/.