VPS侦探论坛

 找回密码
 注册
查看: 148|回复: 4

帮忙看下php升级失败原因,谢谢

[复制链接]
发表于 2019-11-4 20:27:50 | 显示全部楼层 |阅读模式



php5.6升级php7.2.22失败。附件是错误日志,请帮忙看下失败原因,谢谢。

linux系统是Redhat7的。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-11-4 20:31:12 | 显示全部楼层


开始以为是openssl的问题,重新安装了openssl后还是一样的。不知道哪里出问题了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-11-5 10:59:06 | 显示全部楼层



/soft/lnmp16/src/php-7.2.22/ext/ftp/php_ftp.c:323: undefined reference to `OPENSSL_init_ssl'
/soft/lnmp16/src/php-7.2.22/ext/ftp/php_ftp.c:324: undefined reference to `OPENSSL_init_crypto'
/soft/lnmp16/src/php-7.2.22/ext/ftp/php_ftp.c:325: undefined reference to `OPENSSL_init_crypto'
/soft/lnmp16/src/php-7.2.22/ext/ftp/php_ftp.c:326: undefined reference to `OPENSSL_init_crypto'
/soft/lnmp16/src/php-7.2.22/ext/ftp/php_ftp.c:328: undefined reference to `OPENSSL_init_ssl'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/soft/lnmp16/src/php-7.2.22/ext/ftp/ftp.c:277: undefined reference to `TLS_client_method'
/soft/lnmp16/src/php-7.2.22/ext/ftp/ftp.c:286: undefined reference to `SSL_CTX_set_options'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/soft/lnmp16/src/php-7.2.22/ext/gd/libgd/gdkanji.c:349: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/gd/libgd/gdkanji.c:364: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/gd/libgd/gdkanji.c:380: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:2587: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:2608: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:747: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:771: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:805: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:470: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:504: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1497: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:2019: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:2022: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1635: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1638: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:868: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:892: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:947: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:951: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:900: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1186: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1200: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1371: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1403: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1459: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1462: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1318: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1270: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1302: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1446: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:2652: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o:/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:2725: more undefined references to `libiconv' follow
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:576: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:585: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:601: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:611: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:995: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1023: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/iconv/iconv.c:1137: undefined reference to `libiconv_close'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/soft/lnmp16/src/php-7.2.22/ext/phar/util.c:1563: undefined reference to `EVP_MD_CTX_new'
/soft/lnmp16/src/php-7.2.22/ext/phar/util.c:1595: undefined reference to `EVP_MD_CTX_free'
/soft/lnmp16/src/php-7.2.22/ext/phar/util.c:1586: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/soft/lnmp16/src/php-7.2.22/ext/phar/util.c:1860: undefined reference to `EVP_MD_CTX_new'
/soft/lnmp16/src/php-7.2.22/ext/phar/util.c:1892: undefined reference to `EVP_MD_CTX_free'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/soft/lnmp16/src/php-7.2.22/ext/xmlrpc/libxmlrpc/encodings.c:65: undefined reference to `libiconv_open'
/soft/lnmp16/src/php-7.2.22/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv'
/soft/lnmp16/src/php-7.2.22/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
/soft/lnmp16/src/php-7.2.22/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'

你openssl动过肯定是有影响的,前面都已经报错了
libiconv的问题lnmp的脚本已经有适配的命令还报错就无解,也有可能是openssl导致的连锁反应
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-11-5 11:22:31 | 显示全部楼层



licess 发表于 2019-11-5 10:59
你openssl动过肯定是有影响的,前面都已经报错了
libiconv的问题lnmp的脚本已经有适配的命令还报错就无解 ...

军哥你好,如果openssl有问题,怎么修复呢?如何重新安装?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-11-5 19:45:40 | 显示全部楼层

jami918 发表于 2019-11-5 11:22
军哥你好,如果openssl有问题,怎么修复呢?如何重新安装?

不清楚你怎么装的openssl没法说
一般升级系统自动的建议都是只安装供程序另外调用使用不直接动系统自带的

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2019-11-20 08:13 , Processed in 0.045433 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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