- 积分
- 117977
- 威望
-
- 金钱
-
- 注册时间
- 2009-4-24
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
发表于 2022-9-15 19:41:18
|
显示全部楼层
Error: PHP install failed.
PHP没有安装成功,都没安装成功也就无法启动
/bin/sh /root/lnmp1.9/src/php-7.1.33/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /root/lnmp1.9/src/php-7.1.33/modules
/bin/sh /root/lnmp1.9/src/php-7.1.33/libtool --silent --preserve-dup-deps --mode=compile cc -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/root/lnmp1.9/src/php-7.1.33/ext/intl/ -DPHP_ATOM_INC -I/root/lnmp1.9/src/php-7.1.33/include -I/root/lnmp1.9/src/php-7.1.33/main -I/root/lnmp1.9/src/php-7.1.33 -I/root/lnmp1.9/src/php-7.1.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/oniguruma -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.9/src/php-7.1.33/ext/sqlite3/libsqlite -I/root/lnmp1.9/src/php-7.1.33/ext/zip/lib -I/root/lnmp1.9/src/php-7.1.33/TSRM -I/root/lnmp1.9/src/php-7.1.33/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_sort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: error: ‘TRUE’ undeclared (first use in this function)
349 | collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
| ^~~~
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: note: each undeclared identifier is reported only once for each function it appears in
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_asort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:543:26: error: ‘FALSE’ undeclared (first use in this function)
543 | collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
| ^~~~~
make: *** [Makefile:1074: ext/intl/collator/collator_sort.lo] Error 1
/bin/sh /root/lnmp1.9/src/php-7.1.33/libtool --silent --preserve-dup-deps --mode=compile cc -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/root/lnmp1.9/src/php-7.1.33/ext/intl/ -DPHP_ATOM_INC -I/root/lnmp1.9/src/php-7.1.33/include -I/root/lnmp1.9/src/php-7.1.33/main -I/root/lnmp1.9/src/php-7.1.33 -I/root/lnmp1.9/src/php-7.1.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/oniguruma -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.9/src/php-7.1.33/ext/sqlite3/libsqlite -I/root/lnmp1.9/src/php-7.1.33/ext/zip/lib -I/root/lnmp1.9/src/php-7.1.33/TSRM -I/root/lnmp1.9/src/php-7.1.33/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_sort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: error: ‘TRUE’ undeclared (first use in this function)
349 | collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
| ^~~~
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: note: each undeclared identifier is reported only once for each function it appears in
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_asort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:543:26: error: ‘FALSE’ undeclared (first use in this function)
543 | collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
| ^~~~~
make: *** [Makefile:1074: ext/intl/collator/collator_sort.lo] Error 1
php 7.1、7.2与icu的兼容性问题,这种早就停止支持了的php版本没啥办法,php 7.3和7.4应该可以直接安装,可以执行:
export CXX="g++ -DTRUE=1 -DFALSE=0"
export CC="gcc -DTRUE=1 -DFALSE=0"
后,再进行lnmp安装 |
|