编译安装nginx报错 checking for C compiler … not found

编译安装在执行./configure步骤报错,是因为缺少环境变量

checking for C compiler … not found

./configure: error: C compiler cc is not found

解决办法

yum -y install gcc
yum -y install gcc-c++

 

 

 

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre= option.

解决办法

yum -y install pcre-devel openssl openssl-devel

原文链接: https://www.cnblogs.com/my-first-blog-lgz/p/13607039.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    编译安装nginx报错 checking for C compiler ... not found

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/202306

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月12日 下午9:07
下一篇 2023年2月12日 下午9:07

相关推荐