This is a discussion on Re: mysql driver compile problem within the FreeRADIUS Users forums, part of the Networking and Network Related category; This is a multipart message in MIME format. --===============0410169744== Content-Type: multipart/alternative; boundary="=_alternative 006BEF5C0325722E_=" This is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multipart message in MIME format.
--===============0410169744== Content-Type: multipart/alternative; boundary="=_alternative 006BEF5C0325722E_=" This is a multipart message in MIME format. --=_alternative 006BEF5C0325722E_= Content-Type: text/plain; charset="US-ASCII" 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...hat_do_I_do.3F Hope it helps Hernan Antolini freeradius-users-bounces+antolini=ar.ibm.com@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 --=_alternative 006BEF5C0325722E_= Content-Type: text/html; charset="US-ASCII" <br><font size=2 face="sans-serif">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</font> <br><font size=2 face="sans-serif">Think is a linker problem check http://wiki.freeradius.org/index.php/FAQ#It_says_.22Could_not_link_..._file_not_found.2 2.2C_what_do_I_do.3F</font> <br><font size=2 face="sans-serif">Hope it helps</font> <br><font size=2 face="sans-serif"><br> Hernan Antolini<br> <br> </font><tt><font size=2>freeradius-users-bounces+antolini=ar.ibm.com@lists.freeradius.org wrote on 11/22/2006 02:30:15 PM:<br> <br> > Platform is Ubuntu Linux 6.06 server i386 with kernel version 2.6.15-23. <br> > Software is Freeradius 1.1.3 and MySQL 4.1.21. The problem is that the<br> > Freeradius configure script will not detect the existance of the mysqlclient_r<br> > library and subsequently fails to build the rlm_sql_mysql driver <br> > despite my use<br> > of the --with-mysql-lib-dir directive.<br> > <br> > The configure line:<br> > ./configure --prefix=/usr/local/pw/freeradius-1.1.3<br> > --with-mysql-lib-dir=/usr/local/lib/mysql<br> > <br> > >From the configure output:<br> > checking for mysql_init in -lmysqlclient_r (using mysql_config)... no<br> > checking for mysql_init in -lmysqlclient_r... no<br> > configure: WARNING: mysql libraries not found. Use --with-mysql-lib-<br> > dir=<path>.<br> > checking for mysql.h (using mysql_config)... yes<br> > configure: WARNING: sql submodule 'mysql' disabled<br> > configure: creating ./config.status<br> > <br> > A listing of the lib dir:<br> > # ls -l /usr/local/lib/mysql/libmysqlclient_r*<br> > -rw-r--r-- 1 root root 1462324 2006-11-14 02:23<br> > /usr/local/lib/mysql/libmysqlclient_r.a<br> > -rw-r--r-- 1 root root 1395548 2006-11-13 22:44<br> > /usr/local/lib/mysql/libmysqlclient_r.so.15<br> > -rw-r--r-- 1 root root 1395548 2006-11-13 22:44<br> > /usr/local/lib/mysql/libmysqlclient_r.so.15.0.0<br> > <br> > Some evidence of the existance of the referenced function in that library:<br> > # file /usr/local/lib/mysql/libmysqlclient_r.so.15<br> > /usr/local/lib/mysql/libmysqlclient_r.so.15: ELF 32-bit LSB shared <br> > object, Intel<br> > 80386, version 1 (SYSV), stripped<br> > # strings /usr/local/lib/mysql/libmysqlclient_r.so.15 | grep mysql_init<br> > mysql_init<br> > <br> > Any ideas?<br> > <br> > Thanks,<br> > <br> > Chris Carver<br> > Network Engineer<br> > - <br> > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html<br> </font></tt> --=_alternative 006BEF5C0325722E_=-- --===============0410169744== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html --===============0410169744==-- |