freeradius问题

weixin_38109453 2008-10-29 05:30:28

我在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的位置了。有谁遇到过此问题吗?
...全文
25 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧