php的编译错误-make: *** [sapi/cli/php] Error 1

由 frankie 在 09-23-2003 15:59 发表:

php的编译错误-make: *** [sapi/cli/php] Error 1

redhat linux 9.0 , apache 2.0.43, php-4.3.1

首先装好apache2.0.43

./configure --prefix=/usr/local/apache \

--enable-so\

--enable-cgi\

--enable-info\

--enable-rewrite\

--enable-speling\

--enable-usertrack\

--enable-deflate \

--enable-mime-magic

make

make install

一切ok

安装php-4.3.1

./configure \

--with-apxs2=/usr/local/apache/bin/apxs \

--with-mysql \

--prefix=/usr/local/apache/php \

--with-config-file-path=/usr/local/apache/php \

--enable-track-vars \

--enable-force-cgi-redirect \

--disable-cgi \

--with-zlib \

--with-gettext \

--with-gdbm

make

哎,出错了

ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam':

/root/source/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of tempnam' is dangerous, better use mkstemp'

ext/mysql/libmysql/my_lib.lo(.text+0x3d1): In function `my_dir':

/root/source/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno'

ext/mysql/libmysql/my_lib.lo(.text+0x5ef): In function `my_stat':

/root/source/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno'

ext/mysql/libmysql/my_malloc.lo(.text+0xde): In function `my_malloc':

/root/source/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'

ext/mysql/libmysql/my_realloc.lo(.text+0xd5): In function `my_realloc':

/root/source/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'

ext/mysql/libmysql/my_delete.lo(.text+0x86): In function `my_delete':

/root/source/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'

ext/mysql/libmysql/my_tempnam.lo(.text+0x89):/root/source/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108: more undefined references to `errno' follow

collect2: ld returned 1 exit status

make: *** [sapi/cli/php] Error 1

然后我把configure 后的参数去掉一些,再编译,又把参数全部去掉,完全用默认安装,都不行,一样的错误。make: *** [sapi/cli/php] Error 1

哎,怎么连一个php都装

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus