Nigel Metheringham edited this page Nov 29, 2012 · 2 revisions

Q0032

Question

Exim is failing to find the MySQL library, even though is it present within <small>LD_LIBRARY_PATH</small>. I'm getting this error:

/usr/local/bin/exim: fatal: libmysqlclient.so.6: open failed:
No such file or directory

Answer

Exim is suid, and <small>LD_LIBRARY_PATH</small> is ignored for suid binaries on a Solaris (and other?) systems. 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 tells the binary where to look without needing a path variable.


Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.