From: Joe Van Dyk Date: 2005-08-02T10:32:58+09:00 Subject: Re: extconf.rb search path On 8/1/05, Ara.T.Howard wrote: > On Tue, 2 Aug 2005, Joe Van Dyk wrote: > > > Hi, > > > > Whenever I run extconf.rb for gnome2, it compiles against the gnome > > libraries found in /usr. I want it to compile against the gnome > > libraries found in /usr/local. Isn't that what it should do by > > default? > > > > Anyways, how can I get the gnome2 Ruby extensions to compile against > > the headers/libraries in /usr/local? > > > > Thanks, > > Joe > > try this > > ~ > LD_LIBRARY_PATH=/usr/local:$LD_LIBRARY_PATH LD_RUN_PATH=/usr/local:$LD_RUN_PATH ruby extconf.rb > > perhaps your compiler will like this... > > probably there is also a > > --with-gnome-dir=/usr/local > > option for that extconf. > > -a > -- Weirdly, if I run /usr/local/bin/ruby (and not /usr/bin/ruby) on extconf.rb, it uses libraries/headers in /usr/local (and not /usr). So, part of it seems to depend on where Ruby is installed.