VPS侦探论坛

 找回密码
 注册
查看: 163|回复: 2

原来安装的lnmp1.4,现在使用lnmp1.5升级PHP报错

[复制链接]
发表于 2021-3-18 14:49:22 | 显示全部楼层 |阅读模式



-o sapi/cli/php
ext/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: *** [sapi/cli/php] 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):  [  OK  ]
/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


大神们看看咋处理?


美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-3-18 14:58:26 | 显示全部楼层


大神们何在?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-3-18 19:46:27 | 显示全部楼层



什么系统及版本,看日志估计可能是curl版本造成的
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2021-4-15 09:56 , Processed in 0.052738 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表