RE: [Exim] Can't compileExim with MySql under RH 7.2

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Ben Strawson
日付:  
To: 'Peter Santiago', 'Exim-Users@Exim. Org'
題目: RE: [Exim] Can't compileExim with MySql under RH 7.2
You have -llibmysqlclient. When you give a -l option to the compiler,
it automatically prefixes the "lib" part. So what you really want is
-lmysqlclient, as it is in the commented out LOOKUP_LIBS option.

Ben.

> -----Original Message-----
> From: exim-users-admin@???
> [mailto:exim-users-admin@exim.org] On Behalf Of Peter Santiago
> Sent: 23 February 2002 12:50
> To: Exim-Users@Exim. Org
> Subject: [Exim] Can't compileExim with MySql under RH 7.2
>
>
> In Local/Makefile
>
> LOOKUP_INCLUDE=-I /usr/include/mysql
> LOOKUP_LIBS=-L/usr/lib/mysql -llibmysqlclient
>
> #LOOKUP_INCLUDE=-I /usr/local/ldap/include -I
> /usr/local/mysql/include -I /usr/local/p
> #LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq
>
> Error:
> -ldb -lresolv -L/usr/lib/mysql -llibmysqlclient -rdynamic
> -L/usr
> usr/lib/perl5/5.6.0/i386-linux/auto/DynaLoader/DynaLoader.a
> -L/usr/l .0/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt
> -lssl -lcrypto
> /usr/bin/ld: cannot find -llibmysqlclient
> collect2: ld returned 1 exit status
> make[1]: *** [exim] Error 1
> make[1]: Leaving directory `/home/shared/exim-3.35/build-Linux-i386'
> make: *** [go] Error 2
>
> Content of /usr/lib/mysql
> -rw-r--r--    1 root     root        11642 Aug 15  2001 libdbug.a
> -rw-r--r--    1 root     root        35414 Aug 15  2001 libheap.a
> -rw-r--r--    1 root     root        15288 Aug 15  2001 libmerge.a
> -rw-r--r--    1 root     root       247444 Aug 15  2001 libmyisam.a
> -rw-r--r--    1 root     root        23284 Aug 15  2001 libmyisammrg.a
> -rw-r--r--    1 root     root       315332 Aug 15  2001
> libmysqlclient.a
> lrwxrwxrwx    1 root     root           24 Dec 23 12:21
> libmysqlclient.so ->
> libmysqlclient.so.10.0.0
> lrwxrwxrwx    1 root     root           24 Dec 23 12:21
> libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
> -rwxr-xr-x    1 root     root       266812 Aug 15  2001
> libmysqlclient.so.10.0.0
> lrwxrwxrwx    1 root     root           23 Dec 23 12:21
> libmysqlclient.so.9 -> libmysqlclient.so.9.0.0
> -rwxr-xr-x    1 root     root       248792 Jul 20  2001
> libmysqlclient.so.9.0.0
> -rw-r--r--    1 root     root       152086 Aug 15  2001 libmystrings.a
> -rw-r--r--    1 root     root       199646 Aug 15  2001 libmysys.a
> -rw-r--r--    1 root     root       102312 Aug 15  2001 libnisam.a

>
> Any pointers?
>
> TIA,
> Peter
>
>
> --
>
> ## List details at
> http://www.exim.org/mailman/listinfo/exim-> users Exim details
> at http://www.exim.org/ ##
>
>