Freeradius

Centos 6.x 上的 FreeRADIUS 休息模組

  • June 30, 2014

我正在嘗試為 Centos 6.5 上的 REST 模組添加 JSON 支持

我已經安裝了 json-c-devel 包,但是在編譯 FreeRADIUS 時它抱怨它找不到它:

[root@dhcp01]# ./configure --with-dhcp --with-experimental-modules

...
...
checking for json/json.h... yes
checking for json_c_version in -ljson-c in /usr/lib64... no
checking for json_c_version in -ljson-c... no
checking for json_c_version in -ljson-c in /usr/local/lib... no
checking for json_c_version in -ljson-c in /opt/lib... no
configure: WARNING: json-c libraries not found. Use --with-jsonc-lib-dir=<path>.
configure: WARNING: silently building without JSON support. requires: json-c
...
...

[root@dhcp01 lib64]# yum install json-c-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.xnet.co.nz
* epel: fedora.mirror.serversaustralia.com.au
* extras: centos.mirror.uber.com.au
* remi: remi.conetix.com.au
* updates: centos.mirror.serversaustralia.com.au
Setting up Install Process
Package json-c-devel-0.10-2.el6.x86_64 already installed and latest version
Nothing to do

我發現 JSON-C 庫安裝在 /usr/lib64:

usr/lib64/libjson.so
usr/lib64/libjson.so.0
usr/lib64/libjson.so.0.1.0

但似乎缺少 libjson-c.so,我認為這可能是問題所在。我還嘗試編譯指定 /usr/lib64 作為 JSON-C 庫路徑,但結果相同:

./configure --with-dhcp --with-experimental-modules --with-jsonc-lib-dir=/usr/lib64

使用 v3.0.x 頭,檢查已修改為在其檢查中包含 json_tokener_new 符號,該符號存在於舊版本的 JSON-C 中。或者,如果您從 src 建構 JSON-C,它應該是一個足夠新的版本,它可以工作。

引用自:https://serverfault.com/questions/608750