开发者社区> 问答> 正文

NGINX 编译报错及pcre-devel无法安装?报错

一、编译nginx报错:

    ./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=<path> option.

二、查看pcre  

三、yum安装pcre-devel :

     yum -y install pcre-devel

    报错Protected multilib versions: pcre-7.8-7.el6.i686 != pcre-7.8-7.kb2.ky3.x86_64

四、添加指令 --setopt=protected_multilib=false

    yum  install pcre-devel  --setopt=protected_multilib=false

    报错

    事务测试出错:

  package pcre-7.8-7.kb2.ky3.x86_64 (which is newer than pcre-7.8-7.el6.i686) is already installed

求大神解救我该怎么安装pcre-devel

 

展开
收起
爱吃鱼的程序员 2020-06-06 21:00:09 956 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        将pcre卸载了,再来装pcre-devel呢? 
                    
    
                            不敢删,怕系统崩溃,装的还是麒麟系统,万一是定制的pcre包,重下的不匹配就完蛋了
    
    2020-06-06 21:00:22
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《Nginx 代理系统常用手册》 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载