LINUX下暗转php问题

florasue 2008-09-24 03:13:50
安装的是php5.1.2
安装命令如下
tar zxvf php-5.1.2.tar.gz
cd php-5.1.2
./configure --prefix=/data/program/php5 --with-IMAP --enable-sockets --enable-safe-mode --enable-exif --with-mbstring --enable-mbstring=all --with-iconv --with-config-file-path=/etc --with-apxs2=/data/program/apache2/bin/apxs --with-iconv-dir=/data/program/libiconv-1.9.1 --with-zlib --with-freetype --with-gd=/data/program/gd-2.0.33 --with-png --with-jpeg --enable-gd-native-ttf --with-libxml-dir=/data/program/libxml2-2.6.23 --with-xsl=/data/program/libxslt-1.1.12 --enable-soap --with-mysql=/data/program/mysql --with-mysql-sock
make clean
make

到make这部,就会出错
In file included from /data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:37:
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c: In function 'onig_error_code_to_str':
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:194: error: expected declaration specifiers before 'va_dcl'
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:263: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:269: error: expected declaration specifiers before 'va_dcl'
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:268: error: declaration for parameter 'fmt' but no such parameter
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:267: error: declaration for parameter 'pat_end' but no such parameter
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:266: error: declaration for parameter 'pat' but no such parameter
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:265: error: declaration for parameter 'enc' but no such parameter
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:264: error: declaration for parameter 'bufsize' but no such parameter
/data/software/php-5.1.2/ext/mbstring/oniguruma/regerror.c:329: error: expected '{' at end of input
make: *** [ext/mbstring/oniguruma/regerror.lo] Error 1

然后PHP5的文件夹都没有装上,请问这是为什么啊?郁闷~~~
...全文
212 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
webhcl 2011-04-06
  • 打赏
  • 举报
回复
[不幸,我也遇到搂住一样的问题!望高手指点
huailairen 2008-10-07
  • 打赏
  • 举报
回复
configure的时候没有报错吗?

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧