![使用 YAJL 编译 ModSecurity 3.3](https://linux22.com/image/760191/%E4%BD%BF%E7%94%A8%20YAJL%20%E7%BC%96%E8%AF%91%20ModSecurity%203.3.png)
有人能帮忙吗?我被这个问题难住了。
我已经在这台机器上编译了 ModSecurity 3.3(随后这些说明)。现在我正在尝试使用 YAJL(Yet Another JSON Library)进行编译,以便能够以 JSON 格式登录。
我使用 yum 安装了 yajl 和 yajl-devel 包。我的系统是 CentOS Linux 版本 7.8.2003 (Core)。
有关系统和 YAJL 文件的一些详细信息:
[root@nginx ModSecurity]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/include:/usr/lib64
[root@nginx ModSecurity]# ls /usr/lib64 | grep yajl
libyajl.so
libyajl.so.2
libyajl.so.2.0.4
[root@nginx ModSecurity]# ls /usr/include/yajl/ | grep yajl
yajl_common.h
yajl_gen.h
yajl_parse.h
yajl_tree.h
yajl_version.h
两种变体的输出./configure --with-yajl
:
[root@nginx ModSecurity]# ./configure --with-yajl=/usr/include/yajl/
.... output ommited ....
configure: YAJL headers found at: /usr/include/yajl/
configure: error: YAJL was explicitly referenced but it was not found
.... output ommited ....
[root@nginx ModSecurity]# ./configure --with-yajl=/usr/lib64/
.... output ommited ....
configure: YAJL library found at: /usr/lib64///libyajl.so
configure: error: YAJL was explicitly referenced but it was not found
.... output ommited ....