Re: [Exim] Problem running exim after compiling with mysql s…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Nico Erfurth
Data:  
Para: jlixfeld
CC: exim-users
Asunto: Re: [Exim] Problem running exim after compiling with mysql support
Jason Lixfeld wrote:
> Greetings,
>
> Not too sure why I'm getting this error. Wondering where I went wrong
> in my exim compilation/config:
>
> [root@industry SOURCES]# /services/mail/exim/bin/exim -d
> /services/mail/exim/bin/exim: error while loading shared libraries:
> libmysqlclient.so.11: cannot open shared object file: No such file or
> directory


strace would tell your where it tries to search

> [root@industry SOURCES]#
>
> Exim Makefile:
>
> LOOKUP_MYSQL=yes
> LOOKUP_INCLUDE=-I /services/db/mysql/include/mysql
> LOOKUP_LIBS=-L /services/db/mysql/lib/mysql -lmysqlclient
>
> [root@industry exim-4.10]# ls -al
> /services/db/mysql/lib/mysql/libmysqlclient.*
> -rw-r--r--    1 root     root       227556 Oct 17 19:05
> /services/db/mysql/lib/mysql/libmysqlclient.a
> -rwxr-xr-x    1 root     root          723 Oct 17 19:05
> /services/db/mysql/lib/mysql/libmysqlclient.la
> lrwxrwxrwx    1 root     root           24 Oct 17 19:05
> /services/db/mysql/lib/mysql/libmysqlclient.so ->
> libmysqlclient.so.11.0.0
> lrwxrwxrwx    1 root     root           24 Oct 17 19:05
> /services/db/mysql/lib/mysql/libmysqlclient.so.11 ->
> libmysqlclient.so.11.0.0
> -rwxr-xr-x    1 root     root       162784 Oct 17 19:05
> /services/db/mysql/lib/mysql/libmysqlclient.so.11.0.0
> [root@industry exim-4.10]#


At least you tell us (somehow) your exim version....

>
> If I run exim against strings, the library shows up, so I'm really not
> sure what else to check.
>
> It wouldn't be something with the mysql setup, would it? Running mysql
> 4.0.4-beta and have tried with and without the mysql configure option
> --with-mysqld-ldflags=-all-static


As i don't know what system you have (Linux,BSD, Solaris,Coffeemaker?) i
can just suggest what i would do with linux.

Check your /etc/ld.so.conf if it includes /services/db/mysql/lib/mysql,
if not, include it and run ldconfig.

Btw, is there any reason for choosing /services?

ciao