2016-06-30 24 views
0

我試圖用postgresql配置freeradius 3.0.11,但是我在'mods-enabled'裏面的sql文件裏列出的驅動程序有問題。我列出的驅動程序是'rlm_sql_postgresql'。Freeradius 3.0.11 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這樣的文件。

對此的任何想法?我應該以某種方式生成這個文件嗎?

回答

1

這意味着當配置運行freeradius時,它沒有選擇libpq。

顯然brew install postgresql會拉下libpq及其開發頭文件。

刪除的freeradius,安裝PostgreSQL,與brew install --build-from-source freeradius-server

安裝的freeradius它應該(除非自制人都走了自己的方式來打破東西),安裝PostgreSQL驅動。

+0

非常感謝您的訣竅! – AIntel