QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 613|回复: 1

安装php出错,求教~

[复制链接]
发表于 2004-3-20 00:16:49 | 显示全部楼层 |阅读模式
下面是我安装php的过程:(My SQL和apache已装)
#tar -jxvf php-4.3.4.tar.bz2

#cd php-4.3.4

./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs

#make (过程有warning如下)
......
......
*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp4.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
......
......
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

# make install
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module:       apache
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
cp: stat‘libs/libphp4.so’失败: 没有那个文件或目录
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

请问我该怎么解决这个问题呢?
(我去看过php-4.3.4/libs目录只有libphp4.a,libphp4.la)
apache和php的安装,是参照动态模式装的。
发表于 2004-3-20 01:16:37 | 显示全部楼层
我记得的情形大概是:

编译 apache 时,要指定 php 源代码(已经安装了 php-devel,就不用)的位置。
这样完成后,再编译 php ,就不会有问题。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-9 06:16 , Processed in 0.064694 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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