Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
pecl fails by default #41081
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
What you were trying to do
Install a PHP extension using Pecl (as these are no longer maintained as Homebrew formulas).
It seems by default, Homebrew installs php in a way that Pecl is unable to succeed installing a package. I've confirmed this with
Looking at what it was trying to operate on:
There is an unexpected symlink here which is broken (
Removing this unexpected symlink and re-running the
From the issue template:
If you add the necessary information to this issue (don't create a new one, please) then this issue may be reopened.
The following reporters seemed to have had similar issues.
I am unable to reproduce this on my machine with php 7.3.
Installation of apcu via pecl
Installation of xdebug via pecl
@alebcay I ran into the same issue, but I saw you installed using
I'm installing from a Brewfile:
brew "firstname.lastname@example.org" brew "email@example.com" brew "firstname.lastname@example.org", restart_service: true, link: true
And I'm running into the exact same errors when installing anything via pecl afterwards...
# installing PHP extensions echo "Install imagick, accepting defaults" yes '' | pecl install -f imagick echo "Install memcached, accepting defaults" yes '' | pecl install -f memcached echo "Install xdebug, accepting defaults" yes '' | pecl install -f xdebug echo "Install Phpredis, accepting defaults" yes '' | pecl install -f redis
Well, here's another kicker. The installation of
email@example.com installation log
I also found that installing
I made several
But only after I deleted also
and followed by
it seems ok now: