VPS侦探论坛

 找回密码
 注册
查看: 10670|回复: 0

error while loading shared libraries: libpcre.so.0

[复制链接]
发表于 2010-10-7 21:18:10 | 显示全部楼层 |阅读模式

安装nginx后运行nginx 出现错误:
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

按常规执行:ln -s /usr/local/lib/libpcre.so.0 /usr/lib/libpcre.so.0
ln: creating symbolic link `/usr/lib/libpcre.so.0': File exists


问题还是存在

再次执行:apt-get install libpcre
提示如下错误:


The following packages have unmet dependencies:
  libpcre++-dev: Depends: libpcre3-dev but it is not going to be installed
E: Broken packages


再执行

wget http://launchpadlibrarian.net/33465361/libpcre3_7.8-3_i386.deb
dpkg -i http://launchpadlibrarian.net/33465361/libpcre3_7.8-3_i386.deb


再次运行nginx,问题解决
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 01:36 , Processed in 0.024619 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表