无法链接驱动程序rlm_sql_mysql

问题描述

我对MysqL有疑问:

freeradius -X提供以下命令:

Could not link driver rlm_sql_MysqL: /usr/lib/freeradius/rlm_sql_MysqL.so: cannot open shared object file: No such file or directory
Make sure it (and all its dependent libraries!) are in the search path of your system's ld
/etc/freeradius/3.0/mods-enabled/sql[18]: Instantiation Failed for module "sql

” admin @ ubuntu-de-01:/etc/freeradius/3.0/mods-available$ freeradius -v

radiusd: FreeRADIUS Version 3.0.16,for host x86_64-pc-linux-gnu,built on Apr 17 2019 at 12:59:55
FreeRADIUS Version 3.0.16
copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or fitness FOR A
PARTIculaR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters,see the file named copYRIGHT

MysqL数据库正在运行:

Database changed
MysqL> show tables;
+------------------+
| Tables_in_radius |
+------------------+
| nas              |
| radacct          |
| radcheck         |
| radgroupcheck    |
| radgroupreply    |
| radpostauth      |
| radreply         |
| radusergroup     |
+------------------+
8 rows in set (0.00 sec)

MysqL>

我没有尝试安装libMysqLclient或yum或其他任何东西。 重新安装freeradius后,开始出现此问题。

是否也需要以某种方式重新安装MysqL DB?

谢谢

解决方法

就我而言,在降级 MySQL 版本后,libmysqlclient-dev 库丢失了,只需要安装即可。

apt install libmysqlclient-dev

希望,这对某人有所帮助。