-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
pecl fails by default #41081
Comments
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. From #26474
From #40399
From https://yish.dev/xdebug-on-php73-with-homebrew/
|
Since it's fixed I'm going to leave this closed. |
It's not fixed. It's broken. Having every Homebrew user Google around for 20 minutes executing arbitrary commands until it works, is not a "fix". |
Any further attempts to actually "Fix" this problem? |
I am unable to reproduce this on my machine with php 7.3. Installation of apcu via pecl
Installation of xdebug via pecl
|
Myself and @wpdunk managed to replicate this on macOS 10.14.5. We managed to work around it with This bug is not a non-issue, I'm afraid. |
@alebcay I ran into the same issue, but I saw you installed using I'm installing from a Brewfile: brew "php@7.1"
brew "php@7.2"
brew "php@7.3", 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 |
I had the same problem. Running |
Well, here's another kicker. The installation of php@7.3 installation log
I also found that installing |
I had the same issue trying to install XDebug, |
I had this issue recently and running |
Why did you leave this as closed? The issue isn't fixed. |
It is a stupid bot that closed this! Problem still exists. |
As @alebcay mentioned, the issue doesn't exist if you use the most recent version of php. If somebody wants to create a pull request that actually resolves this I'd love to review it. |
I made several But only after I deleted also
and followed by
it seems ok now:
|
FYI had the same issue today. Again it was fixed by running |
Same issue, fixed by creating the directory under Not sure why, should be a bug |
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.
brew install
(orupgrade
,reinstall
) a single, Homebrew/homebrew-core formula (not cask) on macOS? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a Linux problem please file this issue at https://github.com/Homebrew/linuxbrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?What you were trying to do
Install a PHP extension using Pecl (as these are no longer maintained as Homebrew formulas).
What happened
It seems by default, Homebrew installs php in a way that Pecl is unable to succeed installing a package. I've confirmed this with
php@7.2
andphp@7.1
on macOS 10.14.4.Looking at what it was trying to operate on:
There is an unexpected symlink here which is broken (
/usr/local/lib/php/pecl
doesn't exist).Workaround
Removing this unexpected symlink and re-running the
pecl
command makes it work.The text was updated successfully, but these errors were encountered: