-
Notifications
You must be signed in to change notification settings - Fork 53
Error when installing php 5,6 #13
Comments
I just migrated my files to a new macOS machine, which is already running macOS 10.15 Catalina (previously I was on 10.14 Mojave). After running
I haven't found a way to install the 1.0.x version of OpenSSL that PHP 5.6 requires, and compiling from source results in the same errors you're seeing. This is the same underlying issue as #9 but I don't see a way to work around it if your system does not have OpenSSL 1.0.x available. My next step will be to try compiling OpenSSL 1.0.2t from source: https://www.openssl.org/source/ and then recompiling this php@5.6 pointing at that version. |
Just noticed that the OpenSSL (1.0.x) formula was recently removed from homebrew-core: Homebrew/homebrew-core#46876 |
Hi, Thank you for the reply. Do you think you'll be able to fix the issue? Regards, Luis Dias |
Similar Issue on
|
Any solution to this issue? |
We won't be able to provide support to older macOS version (other than Catalina). Sorry about this. |
Figured it out... I just had to find libcrypto.1.0.0.dylib and libssl.1.0.0.dylib elsewhere on my mac and copy them over to the spots where they were missing...
|
Thanks! But this works ONLY if you have php@5.6 in Cellar already. So better get it somewhere and keep it, alongside with these two openssl files and this manual, lol. |
See my comment here: #14 (comment) |
Yes and thank you! If you are looking to run php5.6 and, like me, you need php7.x also, you will need to have two versions os openssl at hand. Don't bother trying to get homebrew to do that for you because it will not. Simply copy libraries to the correct path (as suggested above) and you will have it. |
Hello, I have tried almost everything to solve this. None of the above suggestions works for me. I dont have php5.6 installed anymore and Im not able to install it with brew. Apache works fine, php7.1 also works. But php5.6 (the one I need) doesnt. Any suggestions? Thanks! |
@amichia I added an answer here on what worked for me: #23 (comment) |
Hello,
I am having an issue when installing php 5.6 with homebrew:
Last 15 lines from /Users/luisdias/Library/Logs/Homebrew/php@5.6/03.make:
typedef struct rsa_st RSA;
^
/private/tmp/php@5.6-20191122-43852-14kluu2/php-5.6.40/ext/openssl/openssl.c:3619:6: error: incomplete definition of type 'struct rsa_st'
OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), rsa, d);
^ ~~~
/private/tmp/php@5.6-20191122-43852-14kluu2/php-5.6.40/ext/openssl/openssl.c:3548:9: note: expanded from macro 'OPENSSL_PKEY_SET_BN'
_type->_name = BN_bin2bn(
~~~~~^
/usr/local/opt/openssl@1.1/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
^
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....
Can you please provide some help?
OS: High Sierra
Brew version:
Homebrew 2.1.16
Homebrew/homebrew-core (git revision feec; last commit 2019-11-22)
Thanks in advance
Luis Dias
The text was updated successfully, but these errors were encountered: