免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1636 | 回复: 0
打印 上一主题 下一主题

freeradius 问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-29 16:31 |只看该作者 |倒序浏览
在运行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>.
的问题,但是我已经指定好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP