FreeRADIUS Rest Module在CentOS 6.x上

我正在尝试为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 

但似乎缺lesslibjson-c.so,我认为这可能是问题。 我也试着编译指定/ usr / lib64作为JSON-C库path,但结果相同:

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

使用v3.0.x头,该检查被修改为在其检查中包含json_tokener_new符号,该符号存在于旧版本的JSON-C中。 或者,如果你从src构buildJSON-C,它应该是一个足够新的版本,它可以工作。