LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 836|回复: 3

安装PHP时,出现错误提示!帮看看!

[复制链接]
发表于 2005-3-16 15:05:13 | 显示全部楼层 |阅读模式
安装完MYSQL,APACHE后,安装PHP,版本php-4.3.10,./confugure和make都没出错,可make install提示:
Installing PHP SAPI module: apache2handler
/opt/httpd/build/instdso.sh SH_LIBTOOL='/opt/httpd/build/libtool'libphp4.la /opt/httpd/modules
/opt/httpd/build/libtool --mode=install cp libphp4.la /opt/httpd/modules/
cp .libs/libphp4.lai /opt/httpd/modules/libphp4.la
cp .libs/libphp4.a /opt/httpd/modules/libphp4.a
ranlib /opt/httpd/modules/libphp4.a
chmod 644 /opt/httpd/modules/libphp4.a
libtool:install:warning:remember to run 'libtool --finish /opt/php-4.3.10/libs'Warning!dlname not found in /opt/httpd/modules/libphp4.la.Assuming installing a.so rather than a libtool archive.chmod 755 /opt/httpd/modules/libphp4.so
apxs:error:command failed with rc=65536
make:***[install-sapil] Error 1
发表于 2005-3-16 21:15:40 | 显示全部楼层
./configure后面加参数了没有?
看一下php源码中的INSTALL文档。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-18 12:20:50 | 显示全部楼层
加了参数的.:/configure --prefix=/opt/php --with-mysql=/opt/mysql --with-apxs2=/opt/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=/opt/php/etc  --host=linux
make
[root@localhost php-4.3.10]# make install
Installing PHP SAPI module:       apache2handler
/opt/httpd/build/instdso.sh SH_LIBTOOL='/opt/httpd/build/libtool'

libphp4.la /opt/httpd/modules
/opt/httpd/build/libtool --mode=install cp libphp4.la /opt/httpd/modules/
cp .libs/libphp4.lai /opt/httpd/modules/libphp4.la
cp .libs/libphp4.a /opt/httpd/modules/libphp4.a
ranlib /opt/httpd/modules/libphp4.a
chmod 644 /opt/httpd/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /opt/php-

4.3.10/libs'
Warning!  dlname not found in /opt/httpd/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /opt/httpd/modules/libphp4.so
chmod: 无法取得 /opt/httpd/modules/libphp4.so的属性  没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
[root@localhost php-4.3.10]# cd /opt/httpd/modules
[root@localhost modules]# ls
httpd.exp  libphp4.a  libphp4.la

这个libphp4.so是什么文件,能在那里手动拷一个过去吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-20 08:07:33 | 显示全部楼层
已经解决了!^-^
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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