oneinstack error when install php 7.4

Questions LEMP Stack Q & ACategory: Linuxoneinstack error when install php 7.4
21122010 asked 4 months ago

Hello,
How to install oneinstack on ubuntu 22.04 using php 7.4? its always error when compile openssl
 
In file included from /usr/local/src/oneinstack/src/php-7.4.30/ext/openssl/openssl.c:44:
/usr/include/openssl/evp.h:1346:22: note: declared here
1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~
/usr/local/src/oneinstack/src/php-7.4.30/ext/openssl/openssl.c:5960:41: warning: passing argument 4 of ‘RSA_public_decrypt’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
5960 | EVP_PKEY_get0_RSA(pkey),
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/src/oneinstack/src/php-7.4.30/ext/openssl/openssl.c:46:
/usr/include/openssl/rsa.h:289:29: note: expected ‘RSA *’ {aka ‘struct rsa_st *’} but argument is of type ‘const struct rsa_st *’
289 | RSA *rsa, int padding);
| ~~~~~^~~
make: *** [Makefile:714: ext/openssl/openssl.lo] Error 1

Question Tags:
1 Answers
lempstack answered 1 month ago

It has been fixed, please try it here, as follows:
~/oneinstack/upgrade.sh --oneinstack
~/oneinstack/install.sh

点赞