LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2081|回复: 2

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

[复制链接]
发表于 2003-9-23 15:59:56 | 显示全部楼层 |阅读模式
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都装不上呢? 
:help
 楼主| 发表于 2003-9-24 08:31:59 | 显示全部楼层
没有人知道吗?
顶一下先
 楼主| 发表于 2003-9-26 08:32:59 | 显示全部楼层
这儿这么多高手都没人知道吗?
郁闷啊
连一个php都编译不上去
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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