技术知识库

帮助中心 >  产品文档 >  云服务器 >  nginx安装时报错:Embed is required

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


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: