From: nobu.nokada@... Date: 2004-03-04T08:31:27+09:00 Subject: Re: non-root binary distribution Hi, At Thu, 4 Mar 2004 01:54:48 +0900, David Garamond wrote in [ruby-talk:94160]: > Thanks, it works beautifully. The only thing left is that a user needs > to do: > > % LD_LIBRARY_PATH=/path/to/his/ruby/lib /path/to/his/ruby/bin/ruby > > (or set LD_LIBRARY_PATH in his ~/.bash_profile) otherwise ruby can't > find libruby.so. Is there a way to avoid/get around this? a) use static linked ruby configure --disable-shared b) prepare a wrapper script like followings, with renaming ruby to ruby-bin. #!/bin/sh LD_LIBRARY_PATH="${0%/*}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" exec "$0-bin" "$@" Although it doesn't work in shebang lines, of course, you may not use user specific paths. -- Nobu Nakada