0

我刚从freeradius-server-2.2.0tarball 安装。

我想使用 mysql 服务器连接 freeradius。

但是当我在前台运行半径时radiusd -X,我收到如下错误消息:

Fri Mar  8 13:44:46 2013 : Debug:   group_membership_query = "SELECT groupname           FROM radusergroup           WHERE username = '%{SQL-User-Name}'           ORDER BY priority"
Fri Mar  8 13:44:46 2013 : Debug:   connect_failure_retry_delay = 60
Fri Mar  8 13:44:46 2013 : Debug:   simul_count_query = ""
Fri Mar  8 13:44:46 2013 : Debug:   simul_verify_query = "SELECT radacctid, acctsessionid, username,                                nasipaddress, nasportid, framedipaddress,                                callingstationid, framedprotocol                                FROM radacct                                WHERE username = '%{SQL-User-Name}'                                AND acctstoptime IS NULL"
Fri Mar  8 13:44:46 2013 : Debug:   postauth_query = "INSERT INTO radpostauth                           (username, pass, reply, authdate)                           VALUES (                           '%{User-Name}',                           '%{%{User-Password}:-%{Chap-Password}}',                           '%{reply:Packet-Type}', '%S')"
Fri Mar  8 13:44:46 2013 : Debug:   safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
Fri Mar  8 13:44:46 2013 : Debug:   }
Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
Fri Mar  8 13:44:46 2013 : Error: Make sure it (and all its dependent libraries!) are in the search path of your system's ld.
Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sql.conf[22]: Instantiation failed for module "sql"
Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sites-enabled/default[177]: Failed to find "sql" in the "modules" section.
Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize section. 

它也发生在我的 freeradius ldap 上?

[error LDAP]
/usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or directory 
/usr/local/etc/raddb/sites-enabled/default[305]: Failed to find "ldap" in the "modules" section.
/usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse "ldap" 

我该如何解决这个问题?

我已经安装libmysqlclient-dev在我的 ubuntu 上。

我正在运行Ubuntu 12.04

帮我解决这个问题。

谢谢

4

1 回答 1

0

安装开发头文件后,您确实重新运行了配置吗?

从源代码构建时,您需要执行以下操作:

./configure <options> && make && make install

实际安装模块。

于 2013-04-23T20:44:58.783 回答