From: "fkc_email-news @ yahoo dot com" Date: 2007-05-18T17:50:12+09:00 Subject: Re: relocatable ruby distribution > > all the libs and gems. I also tried to point $: at the correct > > locations, but got an unresolved lib. > > What was your error? A quick test seems to indicate that hijacking $: > works: > > > /opt/bin/ruby -e 'puts $:; require "rubygems"' > > /opt/lib/ruby/site_ruby/1.8 > /opt/lib/ruby/site_ruby/1.8/i686-linux > /opt/lib/ruby/site_ruby > /opt/lib/ruby/1.8 > /opt/lib/ruby/1.8/i686-linux I'm away from my system at work (at RailsConf), but if I recall, it has to do with C based extensions that I compiled. I'd make a guess that the c libs are trying to link to libs that are now not where they were when they were compiled. Thus the unresolved lib errors. Dunno if I tried to manipulate LD_LIBRARY_PATH, mebbe that's it. Maybe I'll try that when I get back.