简体   繁体   English

无法链接驱动程序 rlm_sql_mysql

[英]Could not link driver rlm_sql_mysql

I have a problem with MySQL:我在使用 MySQL 时遇到问题:

freeradius -X gives the following command: 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 " 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

The MySQL database is working: 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>

I haven't tried installing libmysqlclient or yum or anything.我还没有尝试安装 libmysqlclient 或 yum 或任何东西。 This problem started occurring after I've reinstalled the freeradius.在我重新安装 freeradius 后,这个问题开始出现。

Is there a requirment to reinstall the mysql DB somehow as well?是否也需要以某种方式重新安装 mysql 数据库?

Thank you谢谢

in my case, after downgrading the MySQL version, the libmysqlclient-dev library was missed, all that was needed was just to install it.就我而言,在降级 MySQL 版本后, libmysqlclient-dev库丢失了,只需要安装它即可。

apt install libmysqlclient-dev

Hope, this helps someone.希望,这有助于某人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM