sudo?./configure?–with-ld-opt=”-Wl,-rpath,/opt/modules/luajit/lib”?
–user=www?–group=www?–prefix=/opt/modules/nginx?
–with-http_stub_status_module?–with-http_ssl_module?
–with-pcre=../pcre-8.39?–with-debug?–add-module=../ngx_devel_kit-master/?
–add-module=../lua–nginx-module-master/?
–add-module=../nginx_upstream_check_module-0.3.0/
解決方法:yum install perl perl-devel perl-ExtUtils-Embed
因為在nginx的安裝過程中指定了加載with-http_perl_module模塊,官網:http://www.8a.com/en/docs/http/ngx_http_perl_module.html。
官網描述 :The ngx_http_perl_module module is used to implement location and variable handlers in perl and insert perl calls into SSI.This module is not built by default, it should be enabled with the –with-http_perl_module configuration parameter.This module requires perl version 5.6.1 or higher. The C compiler should be compatible with the one used to build perl.
要在nginx中使用perl模塊,這時就需要安裝perl了.也比較常用,所以在做系統的時候直接把這些裝上。