当前位置:   article > 正文

linux编译源码报错,linux安装源码包报错

checking for c compiler ... not found

报错代码1如下:

[root@xiaoming nginx-1.17.]# ./configure --prefix=/soft/nginx-1.17.

checking for OS

+ Linux 3.10.-.el7.x86_64 x86_64

checking for C compiler ... not found

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

解决方法:

源码包的编译用到了linux系统里的编译器,通常源码包都是用C语言开发的,这里提示缺少c语言编译器,只需要使用yum仓库安装gcc这个包即可

yum install -y gcc

报错代码2如下:

./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.

解决办法:

缺少pcre库文件

yum install -y pcre-devel

报错代码3:

./configure: error: the HTTP gzip module requires the zlib library.

<
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/889179
推荐阅读
相关标签
  

闽ICP备14008679号