shivammathur / homebrew-php

:beer: Homebrew tap for PHP 5.6 to 8.4. PHP 8.4 is built nightly.

Home Page:https://github.com/shivammathur/homebrew-php/packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php 7.4.16?

sekizlipenguen opened this issue · comments

Describe the feature

Hi,
how can i install this version?(7.4.16)

Underlying issue

Describe alternatives

Additional context

Are you willing to submit a PR?

You should be able to checkout the commit with PHP 7.4.16 and install it.

cd $(brew --repository shivammathur/php)
git checkout a8549b6

Then install PHP 7.4

steps;
cd $(brew --repository shivammathur/php)
git checkout a8549b6
brew install shivammathur/php/php@7.4
brew link --overwrite --force php@7.4
php -v

Thanks, but I'm getting this error:

dyld: Library not loaded: /opt/homebrew/opt/openldap/lib/libldap-2.4.2.dylib
Referenced from: /opt/homebrew/opt/php@7.4/bin/php
Reason: image not found
zsh: abort php -v

Install from source, so it builds with current library versions

brew reinstall -s shivammathur/php/php@7.4

Amazing. Thanks a lot mate!

This worked to install 7.4.16. Thank you.

cd $(brew --repository shivammathur/php)           
git checkout 4d9389bd135922e257829ef8cf49083bd091a691      
brew reinstall -s shivammathur/php/php@7.4