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

No more pecl since last big sur update on M1 chipset

thibmonier opened this issue · comments

Describe the bug

Since last big sur update and homebrew update, php7.4 always return killed
it seems that php as broken links with pecl.
The result is any command return killed
$> php -v
Killed

PHP versions

Php7.4 (and others maybe)

To Reproduce

Expected behavior

Screenshots/Logs

run any php cmd
image
install php@7.4
image

Additional context

Are you willing to submit a PR?

I cannot reproduce the issue on my end.
Can you please reinstall PHP 7.4 and see if it works correctly.

# Remove PHP and any PHP services that may exist
brew remove php@7.4
sudo rm -f ~/Library/LaunchAgents/homebrew.mxcl.php*
sudo rm -f /Library/LaunchAgents/homebrew.mxcl.php*
sudo rm -f /Library/LaunchDaemons/homebrew.mxcl.php*

# Update brew and shivammathur/php tap
HOMEBREW_DEVELOPER=1 brew untap shivammathur/php
brew tap shivammathur/php
brew update

# Install PHP 7.4
brew install shivammathur/php/php@7.4
brew link --force --overwrite php@7.4

Restart terminal and check PHP and pecl

php -v
pecl -V

I did it several times, and each times I had this result
image
After some research, I saw that pecl is no more installed but symbolic links are still there
image

Run this

sudo rm -rf /opt/homebrew/lib/php
sudo rm -rf $(brew --cellar php@7.4)

and then reinstall PHP 7.4

brew install shivammathur/php/php@7.4
brew link --force --overwrite php@7.4

still the same result :

  • symbolic links are dead
  • php return killed

I upgraded to Big Sur 11.2.1 and still cannot reproduce the issue.
Something is not right with your PHP or brew setup.
There is no issue with this tap.

Reinstall brew and try installing PHP again

sudo rm -rf /opt/hombrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
brew tap shivammathur/php
brew install shivammathur/php/php@7.4
brew link --force --overwrite php@7.4