安装php7.2.4 报一下错误, 之前有安装php5.6 ,用的是最新的安装包

问答中心分类: PHP安装php7.2.4 报一下错误, 之前有安装php5.6 ,用的是最新的安装包
296432269@qq.com 提问 1周 前
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/data/apps/oneinstack/src/php-7.2.4/ext/gd/libgd/gdkanji.c:349: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/gd/libgd/gdkanji.c:364: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/gd/libgd/gdkanji.c:380: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:2558: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:747: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:771: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:805: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:470: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:504: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1497: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1990: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1993: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1608: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1611: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:868: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:892: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:947: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:951: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:900: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1186: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1200: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1318: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1270: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1302: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1462: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1371: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1403: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1459: undefined reference to `libiconv_close'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1446: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:576: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:585: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:601: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:611: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:995: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1023: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:1137: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:2623: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:2693: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:2692: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/data/apps/oneinstack/src/php-7.2.4/ext/iconv/iconv.c:2579: undefined reference to `libiconv_open'
ext/standard/.libs/dns.o: In function `zif_dns_get_mx':
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:1074: undefined reference to `__res_nsearch'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:1085: undefined reference to `__dn_skipname'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:1092: undefined reference to `__dn_skipname'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:1105: undefined reference to `__dn_expand'
ext/standard/.libs/dns.o: In function `php_parserr':
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:447: undefined reference to `__dn_expand'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:588: undefined reference to `__dn_expand'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:594: undefined reference to `__dn_expand'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:768: undefined reference to `__dn_expand'
ext/standard/.libs/dns.o:/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:511: more undefined references to `__dn_expand' follow
ext/standard/.libs/dns.o: In function `zif_dns_get_record':
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:937: undefined reference to `__res_nsearch'
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:971: undefined reference to `__dn_skipname'
ext/standard/.libs/dns.o: In function `zif_dns_check_record':
/data/apps/oneinstack/src/php-7.2.4/ext/standard/dns.c:416: undefined reference to `__res_nsearch'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/data/apps/oneinstack/src/php-7.2.4/ext/xmlrpc/libxmlrpc/encodings.c:65: undefined reference to `libiconv_open'
/data/apps/oneinstack/src/php-7.2.4/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv'
/data/apps/oneinstack/src/php-7.2.4/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
PHP install failed, Please Contact the author!
Starting php-fpm /etc/init.d/php-fpm: line 57: /usr/local/php/sbin/php-fpm: No such file or directory
failed
/data/apps/oneinstack/src /data/apps/oneinstack /data/apps/oneinstack
/data/apps/oneinstack /data/apps/oneinstack
1 问题
oneinstack 回答 1周 前

make ZEND_EXTRA_LIBS=’-liconv’