VPS侦探论坛

 找回密码
 注册
查看: 4085|回复: 1

求助,Error: PHP install failed.

[复制链接]
发表于 2017-8-17 11:04:10 | 显示全部楼层 |阅读模式

安装到最后,Nginx和Mysql都成功了,只有php失败了,日志已上传,大神帮忙看下吧

本帖子中包含更多资源

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

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

回复 1# 的帖子



ext/openssl/.libs/openssl.o: In function `zif_openssl_x509_parse':
/root/lnmp1.4/src/php-7.0.21/ext/openssl/openssl.c:2247: undefined reference to `X509_get_signature_nid'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/root/lnmp1.4/src/php-7.0.21/ext/openssl/xp_ssl.c:1620: undefined reference to `SSL_CTX_set_alpn_select_cb'
/root/lnmp1.4/src/php-7.0.21/ext/openssl/xp_ssl.c:1615: undefined reference to `SSL_CTX_set_alpn_protos'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
/root/lnmp1.4/src/php-7.0.21/ext/openssl/xp_ssl.c:2345: undefined reference to `SSL_get0_alpn_selected'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/root/lnmp1.4/src/php-7.0.21/ext/gd/libgd/gdkanji.c:349: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/gd/libgd/gdkanji.c:364: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/gd/libgd/gdkanji.c:380: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:2557: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:2583: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:779: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:813: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:474: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:508: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1505: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1998: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:2001: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1616: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1619: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:876: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:900: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:955: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:959: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:908: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1194: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1208: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1379: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1411: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1467: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1470: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1326: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1278: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1310: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1454: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:2708: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o:/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:2629: more undefined references to `libiconv' follow
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:578: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:590: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:608: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:618: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1003: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1031: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/iconv/iconv.c:1145: undefined reference to `libiconv_close'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/root/lnmp1.4/src/php-7.0.21/ext/xmlrpc/libxmlrpc/encodings.c:74: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.21/ext/xmlrpc/libxmlrpc/encodings.c:82: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.21/ext/xmlrpc/libxmlrpc/encodings.c:102: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.21/ext/xmlrpc/libxmlrpc/encodings.c:102: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status

这个错误都是做过处理了的,不清楚原因,可以尝试更换其他php版本或linux发行版
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-18 03:47 , Processed in 0.027489 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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