kabel / homebrew-pecl

🐘🌐 PHP extension formulae from the pecl.php.net repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot install php-yaml - please install libyaml

mrwogu opened this issue · comments

Hello,
i was trying to install php-yaml with following command: brew install kabel/pecl/php@8.2-yaml with output:

...
Last 15 lines from Logs/Homebrew/php-yaml/02.configure:
checking host system type... aarch64-apple-darwin23.0.0
checking target system type... aarch64-apple-darwin23.0.0
checking for PHP prefix... /opt/homebrew/Cellar/php/8.2.12_1
checking for PHP includes... -I/opt/homebrew/Cellar/php/8.2.12_1/include/php -I/opt/homebrew/Cellar/php/8.2.12_1/include/php/main -I/opt/homebrew/Cellar/php/8.2.12_1/include/php/TSRM -I/opt/homebrew/Cellar/php/8.2.12_1/include/php/Zend -I/opt/homebrew/Cellar/php/8.2.12_1/include/php/ext -I/opt/homebrew/Cellar/php/8.2.12_1/include/php/ext/date/lib
checking for PHP extension directory... /opt/homebrew/Cellar/php-yaml/2.2.3/lib/php/20220829
checking for PHP installed headers prefix... /opt/homebrew/Cellar/php/8.2.12_1/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable LibYAML suppot... yes, shared
checking for yaml headers... not found
configure: error: Please install libyaml

but libyaml exists in my system:

brew install libyaml
Warning: libyaml 0.2.5 is already installed and up-to-date.

System info

uname -a
Darwin MacBook-Pro-M1.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103 arm64
MacOS Sonoma 14.0

I don't have a Apple silicon (M1 or aarch64) machine to test with, but I'm fairly confident that the build system just needs to know about the M1 Homebrew library path. I've got that added at d9c35be.

Give that a try and see if things are better.

Definitely! Everything works correctly.
Thank you for your commitment and support @kabel.