安装lnmp提示php安装失败
Linux版本:CentOS 7.3.1611 /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: *** Error 1
不大清楚具体原因,你openssl version 看一下版本多少
建议换个centos版本或者php版本试试
这边测试过很多商家的centos7,你这个是哪家的 主机是阿里云
之前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,我忘了删除之前的,今天的都累加在一起了 openssl 1.1铁定安装失败,不建议用户自行升级openssl,要想使用新版openssl可以去使用新版的fedora或者debian9
php 7.1.5的话是支持openssl 1.1的,但是你自己装的openssl得没问题才行
日志是不叠加的 openssl 1.1 是初始化Centos 7.3 后已经存在的,我没有自行升级
我再试试,找找原因,谢谢您
回复 5# 的帖子
如果和京东云情况一样有原来备份的话目录一样的话,可以参考一下京东云的 https://bbs.vpser.net/thread-15744-1-1.html
页:
[1]