Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t使用自制软件在MacOS Catalina上安装PHP 5.6_Php_Macos_Openssl_Homebrew - Fatal编程技术网

Can';t使用自制软件在MacOS Catalina上安装PHP 5.6

Can';t使用自制软件在MacOS Catalina上安装PHP 5.6,php,macos,openssl,homebrew,Php,Macos,Openssl,Homebrew,环境: 卡塔琳娜苹果 10.15.6(19G2021) 我正在尝试安装PHP5.6版本。我跟着 我试过以下方法 brew install --build-from-source php@5.6 并得到以下错误 Updating Homebrew... ==> Installing php@5.6 from exolnet/deprecated ==> Downloading https://php.net/get/php-5.6.40.tar.xz/from/this/mirro

环境:

卡塔琳娜苹果 10.15.6(19G2021)

我正在尝试安装PHP5.6版本。我跟着

我试过以下方法

brew install --build-from-source php@5.6
并得到以下错误

Updating Homebrew...
==> Installing php@5.6 from exolnet/deprecated
==> Downloading https://php.net/get/php-5.6.40.tar.xz/from/this/mirror
Already downloaded: /Users/sreejith/Library/Caches/Homebrew/downloads/ab2ea146f7d8c5258e6d33e9522dac5528cbc3e966bc6e5689fa57860dbb5441--php-5.6.40.tar.xz
==> Patching
==> ./buildconf --force
==> ./configure --prefix=/usr/local/Cellar/php@5.6/5.6.40 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.6 --with-config-file-path=/usr/loca
==> make
Last 15 lines from /Users/sreejith/Library/Logs/Homebrew/php@5.6/03.make:
        if (!dsa->p || !dsa->q || !dsa->g) {
                                   ~~~^
/usr/local/opt/openssl@1.1/include/openssl/ossl_typ.h:107:16: note: forward declaration of 'struct dsa_st'
typedef struct dsa_st DSA;
               ^
/private/tmp/php@5.6-20200914-61731-1cgvxm1/php-5.6.40/ext/openssl/openssl.c:3560:9: error: incomplete definition of type 'struct dsa_st'
        if (dsa->priv_key || dsa->pub_key) {
            ~~~^
/usr/local/opt/openssl@1.1/include/openssl/ossl_typ.h:107:16: note: forward declaration of 'struct dsa_st'
typedef struct dsa_st DSA;
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [ext/openssl/openssl.lo] Error 1
make: *** Waiting for unfinished jobs....

有什么办法解决这个问题吗?提前感谢。

不这样做也可以,但openssl似乎不是酝酿出来的。还有一个问题:目前我只看到openssl@1.1在标准配方中。希望这就是我们所做的php@5.6.@YvesLeBorg,如何为安装旧版本的OpenSSLphp@5.6? - 这项修正有效。现在我可以安装PHP5.6了。我也遇到了同样的问题。。。