rh7.2+freeradius1.1.2+mysql5.0.22 compile problem and solution!
He Miao
hem at ait.net.cn
Thu Jun 15 05:48:28 CEST 2006
download mysql-standard-5.0.22-linux-i686.tar.gz from www.mysql.com,install it in /usr/local.
mysql include dir is /usr/local/mysql/include
mysql lib dir is /usr/local/mysql/lib
below is the detail on my setup:
configuring in ./drivers/rlm_sql_mysql
running /bin/sh ./configure --with-mysql-lib-dir=/usr/local/mysql/lib --with-mysql-include-dir=/usr/local/mysql/include/ --enable-ltdl-install --cache-file=../../../../.././config.cache --srcdir=.
loading cache ../../../../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
checking whether the C compiler (gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for mysql_config... yes
checking for pthread_create in -lpthread... (cached) yes
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)... no
checking for mysql/mysql.h... no
configure: warning: mysql headers not found. Use --with-mysql-include-dir= <path >.
configure: warning: sql submodule 'mysql' disabled
the easy way is :
cp /usr/local/mysql/include/* /usr/loca/include
cp /usr/local/mysql/lib/* /usr/local/lib
compile it again .over!!
------------------------------------------------------------
More information about the Freeradius-Users
mailing list