关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

nginx安装遇阻:提示Embed为必需

发布时间:2024/1/2 13:54:56
香港云服务器

安装nginx时使用的命令:



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


因为在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了.也比较常用,所以在做系统的时候直接把这些装上。