Bluehost.com Web Hosting $6.95

Re: mysql driver compile problem

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 ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-22-2006
Hernan Antolini
 
Posts: n/a
Default Re: mysql driver compile problem

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 &quot;use&quot; 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>
&gt; Platform is Ubuntu Linux 6.06 server i386 with kernel version 2.6.15-23.
<br>
&gt; Software is Freeradius 1.1.3 and MySQL 4.1.21. &nbsp;The problem is
that the<br>
&gt; Freeradius configure script will not detect the existance of the mysqlclient_r<br>
&gt; library and subsequently fails to build the rlm_sql_mysql driver <br>
&gt; despite my use<br>
&gt; of the --with-mysql-lib-dir directive.<br>
&gt; <br>
&gt; The configure line:<br>
&gt; ./configure --prefix=/usr/local/pw/freeradius-1.1.3<br>
&gt; --with-mysql-lib-dir=/usr/local/lib/mysql<br>
&gt; <br>
&gt; &gt;From the configure output:<br>
&gt; checking for mysql_init in -lmysqlclient_r (using mysql_config)...
no<br>
&gt; checking for mysql_init in -lmysqlclient_r... no<br>
&gt; configure: WARNING: mysql libraries not found. Use --with-mysql-lib-<br>
&gt; dir=&lt;path&gt;.<br>
&gt; checking for mysql.h (using mysql_config)... yes<br>
&gt; configure: WARNING: sql submodule 'mysql' disabled<br>
&gt; configure: creating ./config.status<br>
&gt; <br>
&gt; A listing of the lib dir:<br>
&gt; # ls -l /usr/local/lib/mysql/libmysqlclient_r*<br>
&gt; -rw-r--r-- 1 root root 1462324 2006-11-14 02:23<br>
&gt; /usr/local/lib/mysql/libmysqlclient_r.a<br>
&gt; -rw-r--r-- 1 root root 1395548 2006-11-13 22:44<br>
&gt; /usr/local/lib/mysql/libmysqlclient_r.so.15<br>
&gt; -rw-r--r-- 1 root root 1395548 2006-11-13 22:44<br>
&gt; /usr/local/lib/mysql/libmysqlclient_r.so.15.0.0<br>
&gt; <br>
&gt; Some evidence of the existance of the referenced function in that
library:<br>
&gt; # file /usr/local/lib/mysql/libmysqlclient_r.so.15<br>
&gt; /usr/local/lib/mysql/libmysqlclient_r.so.15: ELF 32-bit LSB shared
<br>
&gt; object, Intel<br>
&gt; 80386, version 1 (SYSV), stripped<br>
&gt; # strings /usr/local/lib/mysql/libmysqlclient_r.so.15 | grep mysql_init<br>
&gt; mysql_init<br>
&gt; <br>
&gt; Any ideas?<br>
&gt; <br>
&gt; Thanks,<br>
&gt; <br>
&gt; Chris Carver<br>
&gt; Network Engineer<br>
&gt; - <br>
&gt; 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==--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0