- 论坛徽章:
- 0
|
在运行radiusd -x你很可能会遇到rlm_sql_mysql的错误信息,这是因为freeradius连接mysql的驱动连接文件没有拷贝到usr/lib目录,
你首先要进入解压缩的freeradius目录,找到/src/module/driver/rlm_sql/rlm_sql_mysql,我记不太清了,好像是这个目录,运行
./configure make 这时驱动文件会拷贝到usr/local/lib中,你还需要cp /usr/local/lib/* /usr/lib 然后选择一系列y,覆盖文件,
这时你运行radiusd -x才会正常连接
具体:#/root/software/freeradius-1.1.7/
#cd src/modules/rlm_sql/drivers/rlm_sql_mysql
# ./configure --with-mysql-lib-dir=/usr/local/mysql/lib --with-mysql-include-dir=/usr/local/mysq/include
cp /usr/local/lib/* /usr/lib
我按此方法做后,
./configure --with-mysql-lib-dir=/usr/local/mysql/lib --with-mysql-include-dir=/usr/local/mysq/include
提示:checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for mysql_config... no
checking for pthread_create in -lpthread... yes
checking for mysql_init in -lmysqlclient_r... yes
checking for mysql/mysql.h... no
configure: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>.
configure: WARNING: sql submodule 'mysql' disabled
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
好象是checking for mysql/mysql.h... no
configure: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>.
的问题,但是我已经指定好了。 |
|