baijianpeng wrote:When I follow this tutorial on CentOS 7 and run the "./configure" command, I got several errors about certain libraries not found. For example:checking for C compiler ... not found
./configure: error: C compiler cc is not found
andchecking for PCRE library ... not found
andchecking for zlib library ... not found
andchecking for libxslt ... not found
checking for libxslt in /usr/local/ ... not found
checking for libxslt in /usr/pkg/ ... not found
checking for libxslt in /opt/local/ ... not found
./configure: error: the HTTP XSLT module requires the libxml2/libxslt
libraries. You can either do not enable the module or install the libraries.
Then after some Googling, I got this solution:
Just Install prerequisite packages require for Nginx installation before running "./configure" command:
Code: Select all
# yum install gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel libatomic_ops-devel perl-ExtUtils-Embed -y
Then there will be no errors about ".... not found" . Great!
Thanks! added to the HowTo.