我正试图用postgresql配置freeradius 3.0.11,但在“mods-enabled.‘”中的sql文件中列出的驱动程序出现了问题。我列出的驱动程序是“rlm_sql_postgresql”。
当我运行“radiusd-X”时,会得到以下错误:
Could not link driver rlm_sql_postgresql: dlopen(/usr/local/Cellar/freeradius-
server/3.0.11/lib/rlm_sql_postgresql.dylib, 6): image not found
Make sure it (and all its dependent libraries!) are in the search path of your system's ld
/usr/local/Cellar/freeradius-server/3.0.11/etc/raddb/mods-enabled/sql[20]: Instantiation failed for module "sql"当我查看3.0.11/lib文件夹时,实际上没有这样的文件名为rlm_sql_postgresql.dylib。
对此有什么想法吗?我应该以某种方式生成这个文件吗?
发布于 2016-06-30 15:57:52
这意味着当为freeradius运行配置时,它没有选择libpq。
显然,brew install postgresql将拉下libpq及其开发头。
删除freeradius,安装postgresql,用brew install --build-from-source freeradius-server安装freeradius
它应该安装postgresql驱动程序(除非自制的人已经想方设法破坏它们的功能)。
https://stackoverflow.com/questions/38127226
复制相似问题