LINUX下暗转php问题
安装的是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的文件夹都没有装上,请问这是为什么啊?郁闷~~~