1
我想使用对php扩展有特定要求的库。所以我需要使用php 7.0
或php 7.1
与这种版本的PHP扩展:如何编译特定版本的curl和openssl的php?
- LIB卷曲> = 7.46.0(启用HTTP/2支持)
- LIB-的OpenSSL> = 1.0.2e
我该如何编译PHP这样的要求?
我想使用对php扩展有特定要求的库。所以我需要使用php 7.0
或php 7.1
与这种版本的PHP扩展:如何编译特定版本的curl和openssl的php?
我该如何编译PHP这样的要求?
有两种选择。
您可以在机器上安装lib-curl
7.46.0或更高版本,然后使用--with-curl
选项编译PHP。它将在机器上使用版本lib-curl
。编译时与lib-openssl
相同并使用--with-openssl
。
或者......
的PHP documentation for openssl显示,你可以加入OpenSSL提供目录...所以,如果你想用lib-openssl
特定版本编译您可以在目录中传递给特定的版本:
要使用PHP的OpenSSL支持,您还必须编译PHP --with-openssl [= DIR]。
这同样适用于lib-curl
(Here's the docs):
使用PHP的卷曲支持,你还需要编译PHP --with卷曲[= DIR]其中DIR是包含在目录中的位置lib和包含目录。