网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > 服务器环境搭建
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。

Reply
 
Thread Tools Display Modes
  #1   IP: 153.99.90.120
Old 2016-06-02, 10:30 PM
Harrodsburg Harrodsburg is offline
初级会员
 
Join Date: 2013-11-05
Posts: 1
Harrodsburg 现在声名狼藉
Default error while loading shared libraries: libpcre.so.0的解决办法

昨晚刚买了台linux云服务器,今天配置apache2时,因没有备份libpcre.so.0文件便执行命令“rpm -e pcre –nodeps”,导致丢失libpcre.so.0文件。结果可想而知,新版的pcre再也安装不上了,apache2也无法再编译了。只要一编译,就提示错误:

error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

经过半天的折腾,从别的服务器上拷贝来一份libpcre.so.0文件。结果还不兼容!继续在网上找,功夫不负有心人。终于找到了解决方法:

wget http://mirror.centos.org/centos/6/os/x86_64/Packages/pcre-7.8-6.el6.x86_64.rpm
rpm -ivh pcre-7.8-6.el6.x86_64.rpm

上面的文件是适合我操作系统的(centos6 , 64位)。如果不适合你的系统,可以去这个网站http://pkgs.org/download/libpcre.so.0 下载适合的文件。

另一个方法就是重新安装下pcre
yum install pcre
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx error while loading shared libraries: libpcre.so.1: Harrellsville 服务器环境搭建 0 2016-06-02 10:29 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:04 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.