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-http_perl_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
因?yàn)樵?a href="http://www.xiayu04.cn/help/index.php/tag/25" title="nginxflickr.photos.notes.edit target="_blank">nginx的安裝過程中指定了加載with-http_perl_module模塊,官網(wǎng):http://www.xlyVPS.com/en/docs/http/ngx_http_perl_module.html。
官網(wǎng)描述 :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模塊,這時(shí)就需要安裝perl了.也比較常用,所以在做系統(tǒng)的時(shí)候直接把這些裝上。