当前位置: 技术问答>linux和unix
安装php4找不到libphp4.so文件极其郁闷,高手帮忙呀!!!
来源: 互联网 发布时间:2015-11-11
本文导语: 使用httpd-2.0.55,httpd-2.2.0分别与php-4.4.2安装,httpd安装正常,安装php-4.4.2时总出现错误,错误如下: Installing PHP SAPI module: apache2handler /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/loc...
使用httpd-2.0.55,httpd-2.2.0分别与php-4.4.2安装,httpd安装正常,安装php-4.4.2时总出现错误,错误如下:
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
ranlib /usr/local/apache2/modules/libphp4.a
chmod 644 /usr/local/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-4.4.2/libs'
Warning! dlname not found in /usr/local/apache2/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp4.so
chmod: 无法取得 ‘/usr/local/apache2/modules/libphp4.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
安装httpd时加了,--enable-so选项,,,,
安装顺序如下:
httpd : ./configure --prefix=/usr/local/apache2 --enable-so ; make ; make install
php : ./configure --prefix=/usr/local/php4
>--with-apxs2=/usr/local/apache2/bin/apxs
>--with-mysql=/usr/local/mysql
>--with-config-file-path=/usr/local/php4
高手帮忙说说.,怎么解决?还有什么别的安装方法么?多谢各位...
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
ranlib /usr/local/apache2/modules/libphp4.a
chmod 644 /usr/local/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-4.4.2/libs'
Warning! dlname not found in /usr/local/apache2/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp4.so
chmod: 无法取得 ‘/usr/local/apache2/modules/libphp4.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
安装httpd时加了,--enable-so选项,,,,
安装顺序如下:
httpd : ./configure --prefix=/usr/local/apache2 --enable-so ; make ; make install
php : ./configure --prefix=/usr/local/php4
>--with-apxs2=/usr/local/apache2/bin/apxs
>--with-mysql=/usr/local/mysql
>--with-config-file-path=/usr/local/php4
高手帮忙说说.,怎么解决?还有什么别的安装方法么?多谢各位...
|
到/usr/local/php4下找libphp4.so,在/usr/local/apache2/modules/里用ln -s做个连接。
|
要with_apxs2好像才会做成Apache的module吧?