QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2354|回复: 3

关于PHP4.4.2安装的问题!

[复制链接]
发表于 2006-7-26 14:43:00 | 显示全部楼层 |阅读模式
在redhat9上安装PHP4.4.2时,运行以下命令
[root]$ ./configure --prefix=/usr/php442 --with-apxs2=/usr/apache/bin/apxs \
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local \
--enable-trace-vars --with-zlib-dir=/usr/local --with-mysql=/usr/mysql/mysql

报以下错误,不知道是什么原因导致的(我的Mysql是用的免安装的二进制包)
configure: failed program was:
#line 62857 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
发表于 2006-7-26 14:49:47 | 显示全部楼层
没看明白.........
回复

使用道具 举报

 楼主| 发表于 2006-7-26 16:09:17 | 显示全部楼层
就是在configure的时候最后报一个这个错误,好像是和mysql有关的,我的mysql用的是二进制包,不用安装,直接就可以用,我的mysql也都试过了,确实可以!
另外,在安这遍php之前,已经重装了几次php5.1.4,可是安上以后,总是无法使用,我按照网上的一些贴子里写的方法,对PHP的配置文件进行配置,并把php.ini放到了apache的根目录里,又在apache可以访问的目录里写了一个测试的php文件,用IE打开发现网页为空,什么内容都没有,又或者根本打不开,提示把不开网页,又或者直接把这个测试文件的内容显示出来,不知道安装PHP还需要什么额外的配置或是方法,请赐教,谢谢!
回复

使用道具 举报

发表于 2006-7-26 17:43:49 | 显示全部楼层
whereis mysql

--with-mysql=xxx 路径可能错了
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-3-29 04:37 , Processed in 0.108775 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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