mysql driver compile problem

Hernan Antolini antolini at ar.ibm.com
Wed Nov 22 20:40:14 CET 2006


Dont know much about ubuntu distro but in redhat i had to unistall 
pre-installed mysql packages and install mysql, mysql-devel and 
mysql-shared-compat to fix it: before that i get same error, devel package 
was there and "use" did not did it
Think is a linker problem check 
http://wiki.freeradius.org/index.php/FAQ#It_says_.22Could_not_link_..._file_not_found.22.2C_what_do_I_do.3F
Hope it helps

Hernan Antolini

freeradius-users-bounces+antolini=ar.ibm.com at lists.freeradius.org wrote on 
11/22/2006 02:30:15 PM:

> Platform is Ubuntu Linux 6.06 server i386 with kernel version 2.6.15-23. 

> Software is Freeradius 1.1.3 and MySQL 4.1.21.  The problem is that the
> Freeradius configure script will not detect the existance of the 
mysqlclient_r
> library and subsequently fails to build the rlm_sql_mysql driver 
> despite my use
> of the --with-mysql-lib-dir directive.
> 
> The configure line:
> ./configure --prefix=/usr/local/pw/freeradius-1.1.3
> --with-mysql-lib-dir=/usr/local/lib/mysql
> 
> >From the configure output:
> checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
> checking for mysql_init in -lmysqlclient_r... no
> configure: WARNING: mysql libraries not found. Use --with-mysql-lib-
> dir=<path>.
> checking for mysql.h (using mysql_config)... yes
> configure: WARNING: sql submodule 'mysql' disabled
> configure: creating ./config.status
> 
> A listing of the lib dir:
> # ls -l /usr/local/lib/mysql/libmysqlclient_r*
> -rw-r--r-- 1 root root 1462324 2006-11-14 02:23
> /usr/local/lib/mysql/libmysqlclient_r.a
> -rw-r--r-- 1 root root 1395548 2006-11-13 22:44
> /usr/local/lib/mysql/libmysqlclient_r.so.15
> -rw-r--r-- 1 root root 1395548 2006-11-13 22:44
> /usr/local/lib/mysql/libmysqlclient_r.so.15.0.0
> 
> Some evidence of the existance of the referenced function in that 
library:
> # file /usr/local/lib/mysql/libmysqlclient_r.so.15
> /usr/local/lib/mysql/libmysqlclient_r.so.15: ELF 32-bit LSB shared 
> object, Intel
> 80386, version 1 (SYSV), stripped
> # strings /usr/local/lib/mysql/libmysqlclient_r.so.15 | grep mysql_init
> mysql_init
> 
> Any ideas?
> 
> Thanks,
> 
> Chris Carver
> Network Engineer
> - 
> List info/subscribe/unsubscribe? See 
http://www.freeradius.org/list/users.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20061122/da16f3ed/attachment.html>


More information about the Freeradius-Users mailing list