在 alpine 上安装 php7:缺少 libcrypto 和 libssl

Dim*_*las 5 php7 alpine-linux

我尝试在没有docker 的虚拟机上运行的 Alpine GNU/Linux 发行版上设置 LEMP 堆栈。

然后我尝试php7-mysqli通过社区存储库安装:

sudo apk add php7-mysqli
Run Code Online (Sandbox Code Playgroud)

但我收到以下错误:

ERROR: unsatisfiable constraints:
  so:libcrypto.so.43 (missing):
    required by: php7-openssl-7.2.5-r0[so:libcrypto.so.43] php7-openssl-7.2.5-r0[so:libcrypto.so.43]
  so:libssl.so.45 (missing):
    required by: php7-openssl-7.2.5-r0[so:libssl.so.45] php7-openssl-7.2.5-r0[so:libssl.so.45]
Run Code Online (Sandbox Code Playgroud)

我已经安装了libressl,但错误仍然存​​在。知道为什么会发生这种情况吗?请记住,我已将存储库设置为社区的存储库:

http://dl-2.alpinelinux.org/alpine/edge/community
Run Code Online (Sandbox Code Playgroud)

编辑1:

我按照https://www.cyberciti.biz/faq/how-to-install-php-7-fpm-on-alpine-linux/中提到的说明进行操作

编辑2:

libressl2.6-libcrypto-2.6.3-r0我尝试通过以下命令安装:

sudo apk add libressl2.6-libcrypto-2.6.3-r0
Run Code Online (Sandbox Code Playgroud)

我得到以下输出:

ERROR: unsatisfiable constraints:
  libressl2.6-libcrypto-2.6.3-r0 (missing):
    required by: world[libressl2.6-libcrypto-2.6.3-r0]
Run Code Online (Sandbox Code Playgroud)

如果我尝试安装该libressl软件包,我会收到以下响应:

sudo apk add libressl
(1/2) Installing libressl2.6-libtls (2.6.3-r0)
(2/2) Installing libressl (2.6.3-r0)
Executing busybox-1.27.2-r8.trigger
OK: 119 MiB in 53 packages
Run Code Online (Sandbox Code Playgroud)

问题仍然存在。

我还尝试libressl2.7-libcrypto通过以下方式安装:

sudo apk add libressl2.7-libcrypto
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

ERROR: unsatisfiable constraints:
  libressl2.7-libcrypto (missing):
    required by: world[libressl2.7-libcrypto]
Run Code Online (Sandbox Code Playgroud)

Nas*_*ley 4

您需要安装:

libressl2.7-libcrypto

该软件包提供了两个缺少的文件。