From: "David S." Date: 2001-01-24T09:24:06+09:00 Subject: [ruby-talk:9788] Re: socket.rb? firewalls? > > Another probably stupid question while we're talking about > LD_LIBRARY_PATH. I compiled tk support into ruby as well, and > specified the correct LD..PATH in my .profile, but when I su - root and > whatnot, it's not specified and ruby fails to load because of it. We > have the root user local to each box, the ruby installation is an nfs > mount. Is there any way to tell ruby (a config file (local to the ruby > install) or something) to use that LD..PATH by default instead of > having to modify all the profiles? > I think a better idea would be to re-build (or at least re-link) ruby with a "-R/(your lib directory)" flag. Setting a global LD_LIBRARY_PATH can cause problems. See http://www.visi.com/~barr/ldpath.html David S.