When a newbie tries to install nginx, it is often unable to install the corresponding nginx module due to the lack of dependent components. errors often occur when running & ldquo;./configure & rdquo. If & ldquo;./configure & rdquo; is added after & ldquo; -- with-http_gzip_static_module & rdquo; (add gzip compression module), the following error is prompted:./configure:
When a newbie tries to install nginx, it is often unable to install the corresponding nginx module due to the lack of dependent components. errors often occur when "./configure" is executed.
If '-- with-http_gzip_static_module' (add gzip compression module) is added after './configure', the following error is prompted:
./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=
option.
Install "zlib-devel. Run the following command on SSH:
yum install -y zlib-devel