Linux libphp5.so 缺失
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5484047/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
libphp5.so missing
提问by rashmi
i installed php-5.2.17 with the following commands
我使用以下命令安装了 php-5.2.17
./configure
make
make install
installation went fine. but i dont find libphp5.so file can any one suggest me what went wrong and how to fix this error.
安装顺利。但我没有找到 libphp5.so 文件,任何人都可以告诉我出了什么问题以及如何解决这个错误。
回答by Tomá? Kouba
you should see the output of what is installing during the 'make install' phase. Look for your file there. Usually the target directory is /usr/local/lib (or /usr/local/lib64), so you can try 'find' utility to look for your file in there.
您应该会看到“make install”阶段正在安装的内容的输出。在那里寻找你的文件。通常目标目录是/usr/local/lib(或/usr/local/lib64),所以你可以尝试'find'实用程序在那里寻找你的文件。
回答by Steve Claridge
find / -name libphp*
Should locate it for you. It will be in your apache modules directory, probably: /usr/lib/httpd/modules
应该为你找到它。它将在您的 apache 模块目录中,可能是:/usr/lib/httpd/modules
回答by Gigamegs
You want to type updatedb and then type locate libphp5.so.
您想输入 updatedb,然后输入 locate libphp5.so。
回答by oori
Try libapache2-mod-php5 package, it'll probably resolve it.
尝试 libapache2-mod-php5 包,它可能会解决它。
sudo apt-get install libapache2-mod-php5
(assuming you're already after: sudo apt-get install php5)
(假设您已经在使用:sudo apt-get install php5)
回答by digitally404
First find out the location of apxs (apache auto configuration system):
首先找出apxs(apache自动配置系统)的位置:
$ which apxs
/usr/bin/apxs
Find which version of apache you have installed:
查找您安装的 apache 版本:
$ apachectl -v
Server version: Apache/2.4.7 (Unix)
Server built: Nov 30 2013 00:31:59
Then you configure the PHP install with the location to your apxs, and your version of apache.
然后,您使用 apxs 的位置和您的 apache 版本配置 PHP 安装。
For Apache 2.X, run
对于 Apache 2.X,运行
$ ./configure --with-apxs2=/usr/bin/apxs
For Apache 1.X, run
对于 Apache 1.X,运行
$ ./configure --with-apxs=/usr/bin/apxs
Followed by
其次是
$ make
$ make install
When it's building, you should see the line:
构建时,您应该看到以下行:
...
libtool: install: install .libs/libphp5.so /usr/lib/httpd/modules/libphp5.so
...
回答by jeffmcneill
I had this same problem. I had installed php56.x86_64 from remi-safe, but when I installed php.x86_64 from remi-php56, then the library downloaded properly.
我有同样的问题。我已经从 remi-safe 安装了 php56.x86_64,但是当我从 remi-php56 安装 php.x86_64 时,库下载正确。