VPS侦探论坛

 找回密码
 注册
查看: 3560|回复: 5

安装lnmp提示php安装失败

[复制链接]
发表于 2017-6-25 00:47:29 | 显示全部楼层 |阅读模式

Linux版本:CentOS 7.3.1611

本帖子中包含更多资源

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

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


/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c: In function ‘zif_openssl_encrypt’:
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:4912:17: error: storage size of ‘cipher_ctx’ isn’t known
  EVP_CIPHER_CTX cipher_ctx;
                 ^
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c: In function ‘zif_openssl_decrypt’:
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:4991:17: error: storage size of ‘cipher_ctx’ isn’t known
  EVP_CIPHER_CTX cipher_ctx;
                 ^
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c: In function ‘zif_openssl_dh_compute_key’:
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:5111:33: error: dereferencing pointer to incomplete type
  if (!pkey || EVP_PKEY_type(pkey->type) != EVP_PKEY_DH || !pkey->pkey.dh) {
                                 ^
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:5111:64: error: dereferencing pointer to incomplete type
  if (!pkey || EVP_PKEY_type(pkey->type) != EVP_PKEY_DH || !pkey->pkey.dh) {
                                                                ^
In file included from /home/software/lnmp1.4/src/php-5.5.38/Zend/zend.h:252:0,
                 from /home/software/lnmp1.4/src/php-5.5.38/main/php.h:34,
                 from /home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:29:
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:5117:29: error: dereferencing pointer to incomplete type
  data = emalloc(DH_size(pkey->pkey.dh) + 1);
                             ^
/home/software/lnmp1.4/src/php-5.5.38/Zend/zend_alloc.h:70:38: note: in definition of macro ‘emalloc’
#define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                                      ^
/home/software/lnmp1.4/src/php-5.5.38/ext/openssl/openssl.c:5118:54: error: dereferencing pointer to incomplete type
  len = DH_compute_key((unsigned char*)data, pub, pkey->pkey.dh);
                                                      ^
make: *** [ext/openssl/openssl.lo] Error 1

不大清楚具体原因,你openssl version 看一下版本多少
建议换个centos版本或者php版本试试
这边测试过很多商家的centos7,你这个是哪家的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-6-25 19:01:46 | 显示全部楼层

主机是阿里云

之前openssl库的位置不正确,我加了软链接
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1


openssl version:OpenSSL 1.1.1-dev

又尝试了php7.1.5,还是失败

附件是log,我忘了删除之前的,今天的都累加在一起了

本帖子中包含更多资源

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

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



openssl 1.1铁定安装失败,不建议用户自行升级openssl,要想使用新版openssl可以去使用新版的fedora或者debian9

php 7.1.5的话是支持openssl 1.1的,但是你自己装的openssl得没问题才行

日志是不叠加的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-6-26 00:44:02 | 显示全部楼层

openssl 1.1 是初始化Centos 7.3 后已经存在的,我没有自行升级
我再试试,找找原因,谢谢您

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-6-26 12:40:07 | 显示全部楼层

回复 5# 的帖子


如果和京东云情况一样有原来备份的话目录一样的话,可以参考一下京东云的 https://bbs.vpser.net/thread-15744-1-1.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 21:24 , Processed in 0.027684 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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