跳转到主要内容

FreeRadius配置时出现lm_sql_mysql错误

故障描述
  安装Freeradius,使用Sql。在运行radiused -X时出现如下错误 Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
故障分析
  无
处理过程
1、安装软件包; yum install mysql-devel 2、进入src/modules/rlm_sql/drivers/rlm_sql_mysql目录 运行命令:./configure --with-mysql-dir=/usr/share/mysql/ --with-mysql-lib-dir=/usr/lib/mysql/ cd /opt/freeradius/src/modules/rlm_sql/drivers/rlm_sql_mysql/ ./configure --with-mysql-dir=/usr/share/mysql/ --with-mysql-lib-dir=/usr/lib/mysql/ make make install 3、再次运行radiused -X正常
建议/总结
  无