From: Luis Lavena Date: 2009-10-05T21:40:08+09:00 Subject: [ruby-core:25941] Re: [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory On Mon, Oct 5, 2009 at 2:20 PM, Rick DeNatale wrote: > On Sun, Oct 4, 2009 at 11:47 PM, Nobuyoshi Nakada wrote: >> Hi, >> >> What is the reason that bin is needed in $LOAD_PATH? �AFAIK, >> bin directory is for executable files, but not for libraries. >> > > I believe that it's required because of the way the commands installed > with a gem typically bootstrap via a short ruby program which requires > rubygems and then loads the real command from the bin directory in the > required version of the gem. > > I wouldn't be at all surprised if removing the gems bin directory from > the load path would break most if not all such gem installed commands. > In latest RubyGems (1.3.5) this process of loading gem binaries has been changed to use Gem::bin_path Of course, gems installed with a previous version of RubyGems require re-generation of stub scripts, which simply can be achieved with "gem pristine --all" -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry