Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php failed to build on 10.9.5 #777

Open
BaxterZZZ opened this issue Nov 13, 2021 · 4 comments
Open

php failed to build on 10.9.5 #777

BaxterZZZ opened this issue Nov 13, 2021 · 4 comments

Comments

@BaxterZZZ
Copy link

My actual goal is to get php 5.4 or 5.5 or something in the 5 range to work with TLS 1.2 on my mac running 10.9.5 mavericks. I was able to install tigerbrew. From there I installed wget and that brought in OpenSSL 1.0.2j that supports TLS 1.2 and I updated the expired root certificates for Let's Encrypt. Then curl could connect with a test site via TLS 1.2, but php still used TLS 1. So, I wanted to install a new php built to use OpenSSL.

I tried these fairly recent instructions and none of the taps seem to exist anymore:
https://ofstack.com/PHP/35753/installing-php-5.5.-15-with-brew-in-an-mac-environment.html

Also, brew install php55 -> Error: No available formula for php55
And brew install php gives the error below that says to contact you.
Thanks!
BaxterZZZ

apm [05:52 AM] ~$ brew doctor
Your system is ready to brew.
apm [05:54 AM] ~$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mistydemeo/tigerbrew
HEAD: 98505c9
Last commit: 3 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://ia902307.us.archive.org/31/items/tigerbrew
CPU: 8-core 64-bit nehalem
OS X: 10.9.5-x86_64
Curl: /usr/local/Library/Homebrew/vendor/portable-curl/current/bin/curl
Xcode: 6.2 => /Volumes/Mav500G/Applications/Xcode.app/Contents/Developer
CLT: 6.2.0.0.1.1424975374
Clang: 6.0 build 600
X11: N/A
System Ruby: 2.3.3-222 => /usr/local/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.6.0_65-b14-462
apm [05:54 AM] ~$ brew install php
Error: undefined method livecheck' for Formulary::FormulaNamespace8d205680b76ce25d67c9b7e4787782a5::Php:Class Please report this bug: https://github.com/mistydemeo/tigerbrew/wiki/troubleshooting /usr/local/Library/Taps/homebrew/homebrew-core/Formula/php.rb:10:in class:Php'
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/php.rb:1:in load_formula' /usr/local/Library/Homebrew/formulary.rb:23:in module_eval'
/usr/local/Library/Homebrew/formulary.rb:23:in load_formula' /usr/local/Library/Homebrew/formulary.rb:36:in load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:86:in load_file' /usr/local/Library/Homebrew/formulary.rb:77:in klass'
/usr/local/Library/Homebrew/formulary.rb:73:in get_formula' /usr/local/Library/Homebrew/formulary.rb:208:in factory'
/usr/local/Library/Homebrew/formulary.rb:356:in find_with_priority' /usr/local/Library/Homebrew/extend/ARGV.rb:20:in block in formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:16:in map' /usr/local/Library/Homebrew/extend/ARGV.rb:16:in formulae'
/usr/local/Library/Homebrew/cmd/install.rb:45:in install' /usr/local/Library/brew.rb:143:in

'
apm [05:59 AM] ~$

apm [05:51 AM] ~$ brew search php
Error: undefined method livecheck' for Formulary::FormulaNamespace8d205680b76ce25d67c9b7e4787782a5::Php:Class Please report this bug: https://github.com/mistydemeo/tigerbrew/wiki/troubleshooting /usr/local/Library/Taps/homebrew/homebrew-core/Formula/php.rb:10:in class:Php'
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/php.rb:1:in load_formula' /usr/local/Library/Homebrew/formulary.rb:23:in module_eval'
/usr/local/Library/Homebrew/formulary.rb:23:in load_formula' /usr/local/Library/Homebrew/formulary.rb:36:in load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:86:in load_file' /usr/local/Library/Homebrew/formulary.rb:77:in klass'
/usr/local/Library/Homebrew/formulary.rb:73:in get_formula' /usr/local/Library/Homebrew/formulary.rb:168:in get_formula'
/usr/local/Library/Homebrew/formulary.rb:208:in factory' /usr/local/Library/Homebrew/cmd/search.rb:142:in block in search_formulae'
/usr/local/Library/Homebrew/cmd/search.rb:141:in map' /usr/local/Library/Homebrew/cmd/search.rb:141:in search_formulae'
/usr/local/Library/Homebrew/cmd/search.rb:44:in search' /usr/local/Library/brew.rb:143:in

'

@BaxterZZZ
Copy link
Author

Is Tigerbrew still a live community? Should I be using macports or phpbrew instead?

@mistydemeo
Copy link
Owner

How did you get that homebrew-core/Formula/php.rb file? It's not from Tigerbrew.

@BaxterZZZ
Copy link
Author

BaxterZZZ commented Nov 16, 2021

I tried a few brew tap commands. Most of them said "not found" but one of them downloaded some things. It was challenging to get anything started because my machine had issues making the secure connection to github and then had the master root certificate issues, but I finally for openssl 1.0.2j installed and added the new certs so at least that works, and I have a personal key now for github downloads. Even though I installed brew via Tigerbrew (brew said my system was too old), I am not really clear whether it only contacts tigerbrew when I use the brew command or whether it goes to regular homebrew(?) Most importantly, can you suggest a way to get from where I am now to an installed version of php that uses the new OpenSSL 1.0.2j ? Thanks!

@BaxterZZZ
Copy link
Author

I am happy to test out any commands that you suggest and most the results!

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

No branches or pull requests

2 participants