VPS侦探论坛

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

lnmp安装php7失败

[复制链接]
发表于 2017-6-2 21:26:05 | 显示全部楼层 |阅读模式



麻烦军哥帮忙看看  谢谢啦  试了 好多遍了

本帖子中包含更多资源

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

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


/root/lnmp1.4/src/php-7.0.19/ext/openssl/openssl.c:3242: undefined reference to `X509_REQ_get_subject_name'
/root/lnmp1.4/src/php-7.0.19/ext/openssl/openssl.c:3250: undefined reference to `X509_getm_notBefore'
/root/lnmp1.4/src/php-7.0.19/ext/openssl/openssl.c:3251: undefined reference to `X509_getm_notAfter'
ext/openssl/.libs/openssl.o: In function `php_openssl_make_REQ':
/root/lnmp1.4/src/php-7.0.19/ext/openssl/openssl.c:2911: undefined reference to `X509_REQ_get_subject_name'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
/usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
/usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_num':
/usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/openssl.o: In function `sk_CONF_VALUE_value':
/usr/local/include/openssl/conf.h:31: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/openssl.o: In function `sk_X509_free':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_free'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `set_server_specific_opts':
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1269: undefined reference to `SSL_CTX_get_options'
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1298: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `enable_server_sni':
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1389: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1542: undefined reference to `TLS_client_method'
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1620: undefined reference to `SSL_CTX_set_alpn_select_cb'
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1635: undefined reference to `SSL_CTX_set_options'
/root/lnmp1.4/src/php-7.0.19/ext/openssl/xp_ssl.c:1542: undefined reference to `TLS_server_method'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/openssl/xp_ssl.c:2345: undefined reference to `SSL_get0_alpn_selected'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_value'
ext/ftp/.libs/php_ftp.o: In function `zm_startup_ftp':
/root/lnmp1.4/src/php-7.0.19/ext/ftp/php_ftp.c:313: undefined reference to `OPENSSL_init_ssl'
/root/lnmp1.4/src/php-7.0.19/ext/ftp/php_ftp.c:314: undefined reference to `OPENSSL_init_crypto'
/root/lnmp1.4/src/php-7.0.19/ext/ftp/php_ftp.c:315: undefined reference to `OPENSSL_init_crypto'
/root/lnmp1.4/src/php-7.0.19/ext/ftp/php_ftp.c:316: undefined reference to `OPENSSL_init_crypto'
/root/lnmp1.4/src/php-7.0.19/ext/ftp/php_ftp.c:318: undefined reference to `OPENSSL_init_ssl'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/root/lnmp1.4/src/php-7.0.19/ext/ftp/ftp.c:283: undefined reference to `TLS_client_method'
/root/lnmp1.4/src/php-7.0.19/ext/ftp/ftp.c:292: undefined reference to `SSL_CTX_set_options'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/root/lnmp1.4/src/php-7.0.19/ext/gd/libgd/gdkanji.c:349: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/gd/libgd/gdkanji.c:364: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/iconv/iconv.c:2557: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:779: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/iconv/iconv.c:474: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/iconv/iconv.c:1505: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1998: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:2001: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1616: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/iconv/iconv.c:876: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:900: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:955: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:959: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/iconv/iconv.c:1194: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1208: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1326: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1278: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1310: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1470: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1379: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1411: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1467: undefined reference to `libiconv_close'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1454: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:578: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:590: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:608: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/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.19/ext/iconv/iconv.c:1003: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1031: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:1145: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:2708: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:2707: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:2629: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/root/lnmp1.4/src/php-7.0.19/ext/iconv/iconv.c:2583: undefined reference to `libiconv_open'
ext/phar/.libs/util.o: In function `phar_create_signature':
/root/lnmp1.4/src/php-7.0.19/ext/phar/util.c:1867: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.4/src/php-7.0.19/ext/phar/util.c:1899: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/root/lnmp1.4/src/php-7.0.19/ext/phar/util.c:1570: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.4/src/php-7.0.19/ext/phar/util.c:1602: undefined reference to `EVP_MD_CTX_free'
/root/lnmp1.4/src/php-7.0.19/ext/phar/util.c:1593: undefined reference to `EVP_MD_CTX_free'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/root/lnmp1.4/src/php-7.0.19/ext/xmlrpc/libxmlrpc/encodings.c:74: undefined reference to `libiconv_open'
/root/lnmp1.4/src/php-7.0.19/ext/xmlrpc/libxmlrpc/encodings.c:82: undefined reference to `libiconv'
/root/lnmp1.4/src/php-7.0.19/ext/xmlrpc/libxmlrpc/encodings.c:102: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status

估计可能与openssl有关,php7这种新版本的建议再centos7、debian7之类的高版本上安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 18:34 , Processed in 0.026248 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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