LINUX.ORG.RU
ФорумAdmin

Проблема с mysql и jabberd-2.0s3


0

0

Делаю:
./configure --with-mysql=/usr/include/mysql:/usr/lib/mysql

Идёт бла-бла-бла и в конце:
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
checking for mysql.h in /usr/include/mysql... yes
checking for mysql_init in -lmysqlclient... no
configure: error: MySQL client libraries not found

Если же компилирую не jabberd-2.0s3, а посторей jabber который (jabberd-2.0s2), то там всё в порядке:

...
checking which storage drivers to build... mysql
checking which authreg modules to build... mysql
checking for MySQL in /usr/include/mysql and /usr/lib/mysql... yes
checking which mio backend to use... poll

В чём проблема????

anonymous

Проблему кажется решил:

I've been able to replicate this problem with a fresh MySQL source install. MySQL installs the includes to /usr/include/mysql (with --prefix=/usr). The configure script seems to find these. However, the libs are installed to /usr/lib/mysql, and the configure script does not seem to find these.

You can work around this by setting the ldflags prior to building Jabberd:

LDFLAGS="-L/usr/local/lib -L/usr/lib/mysql";
export LDFLAGS

Nevertheless, I would hope that this can be fixed in the Jabberd config script.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.