免费注册 查看新帖 |

Chinaunix

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

freeradius问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-29 17:30 |只看该作者 |倒序浏览
我在redflag4.1+mysql5.1.29+freeradius1.1.7环境下:
根据这篇文章http://blog.chinaunix.net/u1/47731/showart_402683.html做的配置:


在运行radiusd -x遇到rlm_sql_mysql的错误信息:
rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found
rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld.
在网上的找的办法解决:
这是因为freeradius连接mysql的驱动连接文件没有拷贝到usr/lib目录,
具体:#/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
在做到此步时提示:
  ./configure  --with-mysql-lib-dir=/usr/local/mysql/lib  --with-mysql-include-dir=/usr/local/mysql/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


明明指定了mysql-include的位置了。有谁遇到过此问题吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP