Re: [Exim] Oddities with the LD_LIBRARY_PATH ?

Top Page
Delete this message
Reply to this message
Author: Florian Wallner
Date:  
To: Exim Users Mailinglist
Subject: Re: [Exim] Oddities with the LD_LIBRARY_PATH ?
On Fri, May 12, 2000 at 09:58:44AM -0400, Peter Radcliffe wrote:
> Florian Wallner <wallner@???> probably said:
> > /usr/local/bin/exim: fatal: libmysqlclient.so.6: open failed:
> > No such file or directory
> >
> > Though libmysqlclient is in $LD_LIBRARY_PATH. At least it was when
> > the initial Exim was started. If I create a link to that library in
> > /usr/lib everything works as expected. Below is what exim -d9 -bd gives:
> >
> > root% echo $LD_LIBRARY_PATH
> > /local/lib:/local/lib/mysql
> > root% exim -d9 -bd
>
> exim is suid, and IIRC, LD_LIBRARY_PATH is ignored for suid binaries
> on a solaris box.


Oops, I didn't know that. Learn something new every day.
>
> What you should be doing is adding -R/local/lib/mysql to the same place
> in the compilation that you added -L/local/lib/mysql. This makes the
> binary know where to look itself without needing a path variable.
>


Thank you very much.


-- 
Florian Wallner                        speedlink GmbH
wallner@???                http://www.speedlink.de