[root@localhost php-5.3.6]# make install
Installing PHP SAPI module:? ?? ? apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /root/lnmpa/php-5.3.6/libs'
Warning!??dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: cannot access `/usr/local/apache/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1是由于libtool版本不一致造成的。
把apache 目录build下面的libtool拷贝到了php编译安装的目录下,重新make clean 和make??,make install,就行了。
比如我的apache安装在/usr/local/apache/ ,php-5.3.6为下载的php解压目录
cp /usr/local/apache/build/libtool php-5.3.6/
阅读(6671) | 评论(0) | 转发(0) |