nginx基础3

2022-05-12 23:02:39 浏览数 (1)

报错1

the HTTP rewrite module requires the PCRE library

缺少 PCRE

解决办法是:

  • 1.使用 –without-http_rewrite_module 不添加此模块
  • 2.安装 PCRE 模块到系统中(其实是安装此模块的开发包)
解决依赖

由此可见 pcre 已经在系统中有安装,只是它的开发包没有

代码语言:javascript复制
[root@h102 nginx-1.9.5]# yum list all | grep -i pcre
pcre.x86_64                             7.8-6.el6                @anaconda-CentOS-201410241409.x86_64/6.6
ghc-pcre-light.x86_64                   0.4-7.el6                epel           
ghc-pcre-light-devel.x86_64             0.4-7.el6                epel           
pcre.i686                               7.8-7.el6                base           
pcre.x86_64                             7.8-7.el6                base           
pcre-devel.i686                         7.8-7.el6                base           
pcre-devel.x86_64                       7.8-7.el6                base           
pcre-static.x86_64                      7.8-7.el6                base           
[root@h102 nginx-1.9.5]# 

对此包进行更新,并且使用yum安装它的开发包

代码语言:javascript复制
[root@h102 nginx-1.9.5]# yum install  pcre-devel.x86_64 pcre.x86_64  
Loaded plugins: dellsysid, fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * epel: mirrors.opencas.cn
 * extras: mirrors.pubyun.com
 * updates: mirrors.pubyun.com
Resolving Dependencies
--> Running transaction check
---> Package pcre.x86_64 0:7.8-6.el6 will be updated
---> Package pcre.x86_64 0:7.8-7.el6 will be an update
---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                           Arch                          Version                          Repository                   Size
====================================================================================================================================
Installing:
 pcre-devel                        x86_64                        7.8-7.el6                        base                        320 k
Updating:
 pcre                              x86_64                        7.8-7.el6                        base                        196 k

Transaction Summary
====================================================================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 516 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): pcre-7.8-7.el6.x86_64.rpm                                                                             | 196 kB     00:00     
(2/2): pcre-devel-7.8-7.el6.x86_64.rpm                                                                       | 320 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               797 kB/s | 516 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
ruby-mysql-2.8.2-1.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
ruby-mysql-2.8.2-1.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
ruby193-rubygem-mysql2-0.3.11-4.el6.x86_64 has missing requires of libmysqlclient_r.so.16()(64bit)
ruby193-rubygem-mysql2-0.3.11-4.el6.x86_64 has missing requires of libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
  Updating   : pcre-7.8-7.el6.x86_64                                                                                            1/3 
  Installing : pcre-devel-7.8-7.el6.x86_64                                                                                      2/3 
  Cleanup    : pcre-7.8-6.el6.x86_64                                                                                            3/3 
  Verifying  : pcre-7.8-7.el6.x86_64                                                                                            1/3 
  Verifying  : pcre-devel-7.8-7.el6.x86_64                                                                                      2/3 
  Verifying  : pcre-7.8-6.el6.x86_64                                                                                            3/3 

Installed:
  pcre-devel.x86_64 0:7.8-7.el6                                                                                                     

Updated:
  pcre.x86_64 0:7.8-7.el6                                                                                                           

Complete!
[root@h102 nginx-1.9.5]#

0 人点赞