原来安装的lnmp1.4,现在使用lnmp1.5升级PHP报错
-o sapi/cli/phpext/curl/.libs/multi.o: In function `_php_server_push_callback':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/curl/multi.c:501: undefined reference to `curl_pushheader_bynum'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/gd/libgd/gdkanji.c:349: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/gd/libgd/gdkanji.c:364: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/gd/libgd/gdkanji.c:380: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:2556: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:2577: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:745: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:769: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:803: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:470: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:504: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1495: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1988: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1991: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1606: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1609: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:866: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:890: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:945: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:949: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:898: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1184: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1198: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1369: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1401: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1457: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1460: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1316: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1268: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1300: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1444: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:2621: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o:/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:2691: more undefined references to `libiconv' follow
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:574: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:583: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:599: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:609: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:993: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1021: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/iconv/iconv.c:1135: undefined reference to `libiconv_close'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/xmlrpc/libxmlrpc/encodings.c:65: undefined reference to `libiconv_open'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
/usr/local/oldphp20210318135459/lnmp1.5/src/php-7.2.0/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
make: *** Error 1
Copy new php configure file...
Modify php.ini......
include/php.sh: line 78: pear: command not found
include/php.sh: line 79: pecl: command not found
include/php.sh: line 84: php: command not found
curl: (23) Failed writing body (0 != 16112)
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx (via systemctl):
/bin/lnmp: line 26: /etc/init.d/mysql: No such file or directory
Starting php-fpm /etc/init.d/php-fpm: line 57: /usr/local/php/sbin/php-fpm: No such file or directory
failed
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
大神们看看咋处理?
大神们何在?:'( 什么系统及版本,看日志估计可能是curl版本造成的
页:
[1]