Re: [Exim] Oddities with the LD_LIBRARY_PATH ?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Radcliffe
Dátum:  
Címzett: Exim Users Mailinglist
Tárgy: Re: [Exim] Oddities with the LD_LIBRARY_PATH ?
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.

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.

P.

-- 
pir                  pir@???                    pir@???