leijuly 发表于 2014-1-4 10:38:33

虚拟机 CentOS6.5 php安装失败,求助!

只有php安装有问题,求高手看下。
Nginx: OK
Error: /usr/local/php not found!!!PHP install failed.
MySQL: OK
Sorry,Failed to install LNMP!/bin/sh /opt/lnmp1.0-full/php-5.3.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/opt/lnmp1.0-full/php-5.3.17/ext/date/ -DPHP_ATOM_INC -I/opt/lnmp1.0-full/php-5.3.17/include -I/opt/lnmp1.0-full/php-5.3.17/main -I/opt/lnmp1.0-full/php-5.3.17 -I/opt/lnmp1.0-full/php-5.3.17/ext/date/lib -I/opt/lnmp1.0-full/php-5.3.17/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/opt/lnmp1.0-full/php-5.3.17/ext/mbstring/oniguruma -I/opt/lnmp1.0-full/php-5.3.17/ext/mbstring/libmbfl -I/opt/lnmp1.0-full/php-5.3.17/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/opt/lnmp1.0-full/php-5.3.17/ext/sqlite3/libsqlite -I/opt/lnmp1.0-full/php-5.3.17/TSRM -I/opt/lnmp1.0-full/php-5.3.17/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden-c /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c -o ext/date/php_date.lo
In file included from /usr/include/stdlib.h:320,
               from /opt/lnmp1.0-full/php-5.3.17/include/../main/php_config.h:2452,
               from /opt/lnmp1.0-full/php-5.3.17/Zend/zend_config.h:1,
               from /opt/lnmp1.0-full/php-5.3.17/Zend/zend.h:51,
               from /opt/lnmp1.0-full/php-5.3.17/main/php.h:34,
               from /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/usr/include/sys/types.h:66: 错误:声明指定了两个以上的数据类型
/usr/include/sys/types.h:81: 错误:声明指定了两个以上的数据类型
在包含自 /opt/lnmp1.0-full/php-5.3.17/Zend/zend.h:239 的文件中,
               从 /opt/lnmp1.0-full/php-5.3.17/main/php.h:34,
               从 /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_types.h:38:24: 错误:操作符‘==’没有左操作数
在包含自 /opt/lnmp1.0-full/php-5.3.17/main/php.h:34 的文件中,
               从 /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend.h:260:2: 错误:#error "Unknown SIZEOF_LONG"
In file included from /opt/lnmp1.0-full/php-5.3.17/Zend/zend.h:270,
               from /opt/lnmp1.0-full/php-5.3.17/main/php.h:34,
               from /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h: 在函数‘zend_symtable_update’中:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:345: 错误:‘MAX_LENGTH_OF_LONG’未声明(在此函数内第一次使用)
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:345: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:345: 错误:所在的函数内也只报告一次。)
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h: 在函数‘zend_symtable_del’中:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:352: 错误:‘MAX_LENGTH_OF_LONG’未声明(在此函数内第一次使用)
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h: 在函数‘zend_symtable_find’中:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:359: 错误:‘MAX_LENGTH_OF_LONG’未声明(在此函数内第一次使用)
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h: 在函数‘zend_symtable_exists’中:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:366: 错误:‘MAX_LENGTH_OF_LONG’未声明(在此函数内第一次使用)
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h: 在函数‘zend_symtable_update_current_key_ex’中:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_hash.h:372: 错误:‘MAX_LENGTH_OF_LONG’未声明(在此函数内第一次使用)
In file included from /opt/lnmp1.0-full/php-5.3.17/Zend/zend.h:755,
               from /opt/lnmp1.0-full/php-5.3.17/main/php.h:34,
               from /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_operators.h: 在函数‘is_numeric_string’中:
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_operators.h:141: 错误:‘MAX_LENGTH_OF_LONG’未声明(在此函数内第一次使用)
/opt/lnmp1.0-full/php-5.3.17/Zend/zend_operators.h:201: 错误:‘long_min_digits’未声明(在此函数内第一次使用)
In file included from /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/opt/lnmp1.0-full/php-5.3.17/main/php.h: 在文件层:
/opt/lnmp1.0-full/php-5.3.17/main/php.h:140: 错误:expected identifier or ‘(’ before ‘__extension__’
在包含自 /opt/lnmp1.0-full/php-5.3.17/main/php.h:235 的文件中,
               从 /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:21:
/opt/lnmp1.0-full/php-5.3.17/main/snprintf.h:135:21: 错误:#if 后没有表达式
/opt/lnmp1.0-full/php-5.3.17/main/snprintf.h:147:23: 错误:#elif 后没有表达式
在包含自 /opt/lnmp1.0-full/php-5.3.17/ext/standard/php_versioning.h:24 的文件中,
               从 /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:27:
/opt/lnmp1.0-full/php-5.3.17/ext/standard/basic_functions.h:150:16: 错误:操作符‘==’没有左操作数
/opt/lnmp1.0-full/php-5.3.17/ext/standard/basic_functions.h:159:2: 错误:#error Need type which holds 32 bits
In file included from /opt/lnmp1.0-full/php-5.3.17/ext/standard/php_versioning.h:24,
               from /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:27:
/opt/lnmp1.0-full/php-5.3.17/ext/standard/basic_functions.h:196: 错误:expected specifier-qualifier-list before ‘php_uint32’
在包含自 /opt/lnmp1.0-full/php-5.3.17/ext/date/lib/timelib.h:24 的文件中,
               从 /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.h:24,
               从 /opt/lnmp1.0-full/php-5.3.17/ext/date/php_date.c:29:
/opt/lnmp1.0-full/php-5.3.17/ext/date/lib/timelib_structs.h:42:18: 错误:操作符‘==’没有左操作数
/opt/lnmp1.0-full/php-5.3.17/ext/date/lib/timelib_structs.h:50:18: 错误:操作符‘==’没有左操作数

[ 本帖最后由 leijuly 于 2014-1-4 15:38 编辑 ]

licess 发表于 2014-1-4 14:41:02

上传完整日志

leijuly 发表于 2014-1-4 15:40:04

回复 2# 的帖子

谢军哥,完整日志上传了。

licess 发表于 2014-1-4 20:05:22

不大清楚什么原因建议换个发行版试试

leijuly 发表于 2014-1-4 20:16:55

回复 4# 的帖子

php版本装5.2.17,成功了。还是谢谢军哥。
页: [1]
查看完整版本: 虚拟机 CentOS6.5 php安装失败,求助!