-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fails to pecl install or build manually on M1 Mac running macOS Ventura #32
Comments
Hi, @donatj. I know it's been 2 weeks since you opened this issue, so I'm guessing you either already found a solution or have moved on. I just happened to have added a GitHub Actions CI workflow that compiles and tests the PHP Gearman extension on the latest macOS, and it works, as you can see here: https://github.com/esabol/pecl-networking-gearman/actions/runs/11269845628/job/31339294167 Looking at your log.txt, you (well,
I suspect you need to run
I think you're probably going to have to configure and compile it manually instead of using |
@esabol Hah, so, actually no, I have not moved on. It's been a complete and total blocker for me trying to do some maintenance work on an old project. Your suggested For the future, is this something that can be fixed on the … pecl side? I've no idea who I need to poke to make this not a problem 😆 |
@dontj asked:
Well, I would try changing this line: pecl-networking-gearman/config.m4 Line 16 in a52052c
to
Can you make that change to the gearman configure file locally and test that, @donatj ? Ideally, it should run |
In case anyone else lands here like me after a ton of searching around, the "suggested ./configure incantation" process is referring to just manually installing the PHP gearman extension instead of using PECL. I'm on an M1 Mac also, using PHP 8.3, so adjust commands below based on your version. From this SO answer, first download latest version from http://pecl.php.net/package/gearman then:
Then add Hopefully that helps someone avoid the hour of head-keyboard-smash that I wasted trying to get PECL to work despite the repeated "Please install libgearman" response. |
I don't know for certain if this is a problem to post here or as part of the homebrew for Gearman itself, my knowledge of C isn't good enough to tell me what the actual problem is, I'm just handy enough to be dangerous - but I have been fighting with getting the Gearman extension working on my M1 Mac for weeks.
It seems that no matter what I try it boils down to
configure: error: Please install libgearman
I thought maybe it's something with my local machine, so I spun up a clean macOS on a UTM VM and tried it - log.txt here's the log of that. Same issue.
That log, above, on a clean install of macOS boils down to
(Click to Expand) Log Summary
I've done a bunch of "debugging" with ChatGPT, as helpful as that might be -
gearman.pc
seems to be missing?I tried just manually creating a
/opt/homebrew/opt/gearman/lib/pkgconfig/gearman.pc
(the/opt/homebrew/opt/gearman/lib/pkgconfig
directory already exists but only has agearmand.pc
)My understanding is that libgearman should be installed with
brew install gearman
?I don't know what the problem is - but it's broken on a clean install of macOS so I suspect I'm not (fully) the issue here?
The text was updated successfully, but these errors were encountered: