2013-03-06 54 views
1

我剛剛從tarbal版本freeradius-server-2.2.0.tar.gz安裝了freeradius。 comile並使安裝運行良好。我也可以先運行radius -X在調試模式下運行。<ask>配置mysql和freeradius

然後我嘗試配置freeradius以便可以使用mysql數據庫運行。

我配置authorizaion,佔網站上可用/默認情況下,uncoment包括radiusd.conf SQL和配置上sql.conf連接

然後,我從schema.sql文件導入架構,以MySQL數據庫和nas.sql

然後當我嘗試運行radiusd -X我有錯誤,如波紋管:

Could not link driver rlm_sql_mysql: 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. 
/usr/local/etc/raddb/sql.conf[22]: Instantiation failed for module "sql" 
/usr/local/etc/raddb/sites-enabled/default[177]: Failed to find "sql" in the "modules" section. 
/usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize section. 

任何人都可以幫助我如何解決這個問題?

感謝

回答

3

你取消註釋 「$ INCLUDE sql.conf」 在radiusd.conf?

如果你使用Debian,Ubuntu的...嘗試 「的apt-get安裝的libmysqlclient-dev的」

+0

其實everyting運行良好後,我安裝libmysqlclient- *用apt-get處理。 – 2013-03-06 12:17:15