QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3863|回复: 13

安装PHP5,出现了无限问题!

[复制链接]
发表于 2006-7-22 20:40:07 | 显示全部楼层 |阅读模式
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.

这两天新安装了一台机器,准备安装apache+mysql+php,结果在安装php5的时候出现了无数问题!
最新的问题,如上所示,在./configure --with-apxs2=/usr/apache/bin/apxs --with-mysql=/usr/mysql/mysql  \
--with-gd --with-zlib --with-system-regex --with-libpng
的时候出现,不知道怎么解决,谁能告知,谢谢!
发表于 2006-7-22 21:04:39 | 显示全部楼层
把libpng安装上先http://www.libpng.org/pub/png/libpng.html

LZ用的是什么发行版本的Linux?
回复

使用道具 举报

 楼主| 发表于 2006-7-22 21:57:33 | 显示全部楼层
安上了,现在又出现了新的问题:
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
刚才上网查了查,说是要先安MySQL-devel-5.0.22-0,安上之后,仍报这个错误,不知道下面该怎么办了!我的mysql用的是免安装的二进制包!谢谢,不胜感激!
回复

使用道具 举报

发表于 2006-7-23 02:45:03 | 显示全部楼层
--with-mysql=/usr/mysql/mysql
是不是这里写错了?
一般会是
--with-mysql=/usr/local/mysql
或是你mysql安装的路径。
回复

使用道具 举报

发表于 2006-9-22 14:10:09 | 显示全部楼层
把--with-mysql=/usr/local/mysql
改成--with-mysql-dir=/usr/local/mysql
回复

使用道具 举报

发表于 2006-9-27 20:14:57 | 显示全部楼层
[quote:284355d5e9="air_wang"]把--with-mysql=/usr/local/mysql
改成--with-mysql-dir=/usr/local/mysql[/quote]

改成--with-mysql-dir 后编译出来php是不支持mysql的。
回复

使用道具 举报

发表于 2006-9-27 21:33:44 | 显示全部楼层
--with-mysql 应该只是一个开关参数,表明是否打开 mysql 的支持。他不能用来进行赋值吧??
一看楼上就没看 ./configure --help 的输出。

本来人家自己就有解释,为啥你就不看涅???
回复

使用道具 举报

发表于 2006-9-27 21:53:47 | 显示全部楼层
不是。 如果是自己安装的mysql就要指定目录。

p.s
--with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base directory
回复

使用道具 举报

发表于 2006-9-27 22:11:38 | 显示全部楼层
那你放错了路径?
回复

使用道具 举报

发表于 2006-9-27 22:51:12 | 显示全部楼层
没有放错。 网上找了下,这似乎是个千古迷题,网上解法众说纷纭, 全部试过。。 无解。。 mysql官方有人留言说似乎是bug....
回复

使用道具 举报

发表于 2006-9-27 22:57:01 | 显示全部楼层
bug ......
你看了 configure 时候的输出了么?
什么提示?很有可能是识别的有问题。
回复

使用道具 举报

发表于 2006-9-27 23:13:51 | 显示全部楼层
就输出这个:
configure: error: mysql configure failed. Please check config.log for more information.

config.log :

/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x8: In function `TaoCrypt::FileSource::~FileSource(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x28c): In function `TaoCrypt::FileSink::~FileSink(void)':
: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
configure: failed program was:
#line 58781 "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-9-28 21:24:52 | 显示全部楼层

编译器有问题?!导致没有找到含有 __builtin_delete 这个引用的库???

你的系统怎么装的?会不会有没有满足的依赖而强行安装的东西?
回复

使用道具 举报

发表于 2006-10-11 20:35:51 | 显示全部楼层
我的也是这样问题,现在还没有解决,如果是编译器的问题,那怎么解决呢?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-20 07:07 , Processed in 0.085417 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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