6078031 发表于 2017-8-17 11:04:10

求助,Error: PHP install failed.

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

licess 发表于 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发行版
页: [1]
查看完整版本: 求助,Error: PHP install failed.