Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装PHP 7.4 错误 #426

Open
fantastlcok opened this issue May 10, 2022 · 0 comments
Open

安装PHP 7.4 错误 #426

fantastlcok opened this issue May 10, 2022 · 0 comments

Comments

@fantastlcok
Copy link

环境:

# uname -a
Linux file3 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
# apt-cache policy openssl
openssl:
  Installed: 3.0.2-0ubuntu1.1
  Candidate: 3.0.2-0ubuntu1.1
  Version table:
 *** 3.0.2-0ubuntu1.1 500
        500 http://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 Packages
        500 http://mirror.hetzner.com/ubuntu/packages jammy-security/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.0.2-0ubuntu1 500
        500 http://mirror.hetzner.com/ubuntu/packages jammy/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

安装参数:

wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 3 --php_option 9 --phpcache_option 1 --php_extensions imagick,redis,memcached --phpmyadmin --db_option 5 --dbinstallmethod 1 --dbrootpwd passwd --redis --memcached --reboot

错误:

In file included from /root/lnmp/src/php-7.4.29/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);
      |                      ^~~~~~~~~~~~~~~~~
/root/lnmp/src/php-7.4.29/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 /root/lnmp/src/php-7.4.29/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
PHP install failed, Please Contact the author!
Killed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant