|
环境fc5 apach mysql gd xml都安装完成
安装php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir --with-mysql --enable-track-vars
时出错:
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... no
configure: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.
config.log:
collect2: ld returned 1 exit status
configure: failed program was:
#line 34774 "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 png_write_image();
int main() {
png_write_image()
; return 0; } |
|