Nginx
未找到 ModSecurity 依賴項?
1. yum groupinstall 'Development tools' 2. yum install -y geoip-devel libcurl-devel libxml2-devel libxslt-devel libgb-devel lmdb-devel openssl-devel pcre-devel perl-ExtUtils-Embed yajl-devel zlib-devel 3. cd /opt 4. git clone --depth 1 -b v3/master https://github.com/SpiderLabs/ModSecurity.git 5. cd ModSecurity 6. git submodule init 7. git submodule update 8. ./build.sh 9. ./configure
下面是結果
正如我們所知,第 2 步我們已經安裝了 yajl-devel 和 geoip-devel,但為什麼找不到依賴項?
更新:
當我嘗試單獨安裝時意識到
geoip-devel
,yajl-devel
兩者都給我沒有可用的包錯誤。想知道我應該如何安裝它們?下面是輸出
[root@ip nginx]# yum install -y geoip-devel Loaded plugins: amazon-id, rhui-lb, search-disabled-repos No package geoip-devel available. Error: Nothing to do
您缺少的軟體包位於 RHEL 可選頻道中,您需要啟用該頻道。
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional