Re: Problem compiling with MySql support
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | The Kannel Group |
| Message-ID | <[email protected]> |
Alejandro Guerrieri wrote:
> Hi,
>
> I am having problems compiling 1.3.2 with MySQL support. The system doesn't
> seem to find part of MySQL (mysql_init on libmysqlclient):
>
> ]#
> ./configure --enable-start-stop-daemon --prefix=/usr --with-defaults=speed
> --disable-docs --disable-ssl --with-mysql --with-mysql-dir=/usr
>
> loading cache ./config.cache
>
>
> Configuring for Kannel gateway version 1.3.2 ...
>
> <....>
>
> Configuring DB support ...
> checking whether to compile with MySQL support... searching
> checking for mysql_config... /usr/bin/mysql_config
> checking mysql version... 3.23.58
> checking mysql
> libs... -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm
> checking for mysql_init in -lmysqlclient... no
> configure: error: Unable to find MySQL client libraries
>
> I am using RedHat 9 and I have the proper RPM packages installed:
>
> ]# rpm -qa |grep -i mysql
> perl-DBD-MySQL-2.1021-3
> mysql-server-3.23.58-1.9
> mysql-devel-3.23.58-1.9
> mysql-3.23.58-1.9
>
> ]# locate mysql.h
> /usr/include/mysql/mysql.h
>
> ]# locate libmysql
> /usr/lib/mysql/libmysqlclient.so.10.0.0
> /usr/lib/mysql/libmysqlclient.so.10
> /usr/lib/mysql/libmysqlclient_r.so.10.0.0
> /usr/lib/mysql/libmysqlclient_r.so.10
> /usr/lib/mysql/libmysqlclient.a
> /usr/lib/mysql/libmysqlclient.so
> /usr/lib/mysql/libmysqlclient_r.a
> /usr/lib/mysql/libmysqlclient_r.so
>
> Any hints?
that's sort of suspicious, since the paths seem ok. Try these and mail
us the output:
$ nm /usr/lib/mysql/libmysqlclient.a | grep mysql_init
$ mysql_config
Stipe
mailto:stolj_{at}_wapme.de
-------------------------------------------------------------------
Wapme Systems AG
Vogelsanger Weg 80
40470 Düsseldorf, NRW, Germany
phone: +49.211.74845.0
fax: +49.211.74845.299
mailto:info_{at}_wapme-systems.de
http://www.wapme-systems.de/
-------------------------------------------------------------------
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2 (Cygwin)
mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-----END PGP PUBLIC KEY BLOCK-----