centos7.9
通过rpm安装nginx时一直报错

error: Failed dependencies: 	
libpcre.so.0()(64bit) is needed by nginx-1.8.0-1.el6.x86_64

无论通过rpm 还是yum install 安装都提示报错

首先我们要添加依赖libpcre.so.0
找到已存在libpcre.so.0的机器拷贝libpcre.so.0.0.1至/lib64 下
创建软连接

ln -s libpcre.so.0.0.1  libpcre.so.0
#依赖必须解决 否则即使下一步安装之后nginx也起不来

此时依赖已解决 但是安装还是报错
查找资料最终通过加参数解决

rpm -ivh nginx-1.8.0-1.el6.x86_64.rpm --nodeps --force

加上那两个参数的意义就在于,
安装时不再分析包之间的依赖关系而直接安装

GitHub 加速计划 / de / Dependencies
36
1
下载
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:16 天前 )
1997a400 - 3 年前
2f423539 - 3 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐