編譯Nginx提示gzip module requires the zlib library
新手在嘗試安裝nginx時(shí),常常會(huì )因為缺少依賴(lài)組件,導致nginx相應模塊無(wú)法安裝,在執行“./configure”時(shí)常出現錯誤。
若在“./configure”后方加入了“--with-http_gzip_static_module”(添加gzip壓縮模塊)提示以下錯誤:
./configure: error: the HTTP gzip module requires the zlib library.You can either disable the module by using –without-http_gzip_moduleoption, or install the zlib library into the system, or build the zlib
librarystatically from the source with nginx by using –with-zlib=<path> option.
則需要安裝“zlib-devel”即可。SSH執行以下命令:
yum install -y zlib-devel
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。