Re: [exim] Error compiling Exim 4.69

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] Error compiling Exim 4.69
On Sat, Jul 19, 2008 at 05:24:33PM +0200, Yves Goergen said:
> I've switched back to version 4.62, just to rule out any version
> incompatibilities. Same problem though.
>
> I seem to get forward a little. Above the quoted error message, there
> was already a message about "mysql.h" missing. I searched for it and
> found it in a different directory than I had set in the Makefile:
>
> On 19.07.2008 14:37 CE(S)T, Yves Goergen wrote:
> > LOOKUP_INCLUDE=-I /usr/local/mysql5/include
> > LOOKUP_LIBS=-L/usr/local/mysql5/lib -lmysqlclient -lz
>
> I changed this to:
>
> LOOKUP_INCLUDE=-I /usr/local/mysql5/include/mysql
> LOOKUP_LIBS=-L/usr/local/mysql5/lib/mysql -lmysqlclient -lz
>
> (Note the added "/mysql".)
>
> 'make' would finish then, but 'make install' won't:
>
> > mkdir -p /usr/exim/bin
> > /usr/exim/bin created
> >
> > Installation directory is /usr/exim/bin
> >
> > ./exim: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
> >
> > *** Could not run ./exim to find version number ***
> > *** Exim installation failed ***
> > make: *** [install] Error 1
>
> I have no idea what it wants to tell me. It did compile, and now it
> doesn't run, or what? It did find the library, now it doesn't...?!
>
> Also note that on my production server, I didn't append the "/mysql" to
> the paths in the makefile. And yet all worked fine there. Same Exim
> version, same Linux distribution and version, same directory names, same
> configuration. One works, the other doesn't. Very strange.


You have told the compiler where to find headers, and you have told the
linker where to find libraries, but you haven't told the runtime linker
where to find those libraries. You either want an rpath (usually not,
though) or you want to add /usr/local/mysql5/lib/mysql to you
/etc/ld.so.conf search path. Or, possibly, install in a normal
location.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Different all twisty a of in maze are   |
|  steve@???             | you, passages little.                   |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------