From: "Ara.T.Howard" Date: 2005-09-26T23:44:27+09:00 Subject: Re: Linux install of 1.8.2 On Mon, 26 Sep 2005, ts wrote: >>>>>> "M" == Mark Volkmann writes: > > M> I had already done that. The problem is that changing PATH doesn't > M> change what's in the default LOAD_PATH. When I run "ruby -e 'puts > M> $LOAD_PATH' " it outputs the same thing it did for you where all the > M> directories start with /usr/local/lib/ruby. > > Because it was not compiled with the right option, in ruby-1.8.3 > > make distclean > mkdir $HOME/local > ./configure --prefix=$HOME/local > make > make install > make install-doc > > --prefix is important indeed. if you plan on compiling any extensions i would highly reccomend doing export prefix=$HOME/local export LD_RUN_PATH=$HOME/local export LD_LIBRARY_PATH=$HOME/local make distclean mkdir $prefix ./configure --prefix=$prefix make make install make install-doc doing the first three for every third party lib you intall will greatly ease compiling and using extensions which themselves link to other libraries : like the ruby postgres lib which, itself, uses the postgres client libs. in fact, i wonder why mkmf would not set LD_RUN_PATH to $prefix or $libdir when compiling? it would avert a lot of problems... cheers. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================