Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Cannot install php@5.6 on macOS Catalina #28

Closed
SreejithEzhakkad opened this issue Sep 14, 2020 · 3 comments
Closed

Cannot install php@5.6 on macOS Catalina #28

SreejithEzhakkad opened this issue Sep 14, 2020 · 3 comments

Comments

@SreejithEzhakkad
Copy link

Environment:

macOS Catalina 10.15.6 (19G2021)
I tried
brew install --build-from-source php@5.6

Got the following error

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/local/etc/php/5.6 --with-config-file-scan-dir=/usr
==> 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-12368-10sofh3/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....

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/exolnet/homebrew-deprecated/issues

These open issues may also help:
php@5.6 Library not loaded libicui18n.64.dylib https://github.com/eXolnet/homebrew-deprecated/issues/23
PHP 5.6 and 7.0 doesn't run on Catalina - openssl 1.0.0 needed https://github.com/eXolnet/homebrew-deprecated/issues/14
MacOs,  brew install exolnet/deprecated/php@5.6 errors https://github.com/eXolnet/homebrew-deprecated/issues/19
Adds optional openssl@1.1 compatability patch for php@5.6. https://github.com/eXolnet/homebrew-deprecated/pull/25

Any solution to resolve this issue?

@duankai8757
Copy link

so do I

@heydluv
Copy link

heydluv commented Sep 14, 2020

Try this: #23 (comment)

@SreejithEzhakkad
Copy link
Author

@heydluv , it worked. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants