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

No more pecl since last big sur update on M1 chipset #144

Closed
thibmonier opened this issue Feb 16, 2021 · 5 comments
Closed

No more pecl since last big sur update on M1 chipset #144

thibmonier opened this issue Feb 16, 2021 · 5 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@thibmonier
Copy link

thibmonier commented Feb 16, 2021

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?

@thibmonier thibmonier added the bug Something isn't working label Feb 16, 2021
@shivammathur
Copy link
Owner

shivammathur commented Feb 16, 2021

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

@thibmonier
Copy link
Author

thibmonier commented Feb 16, 2021

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

@shivammathur
Copy link
Owner

shivammathur commented Feb 16, 2021

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

@thibmonier
Copy link
Author

still the same result :

  • symbolic links are dead
  • php return killed

@shivammathur
Copy link
Owner

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

@shivammathur shivammathur added invalid This doesn't seem right and removed bug Something isn't working labels Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants