kabel / homebrew-pecl

🐘🌐 PHP extension formulae from the pecl.php.net repository
BSD 2-Clause "Simplified" License
18 stars 4 forks source link

Cannot install php-yaml - please install libyaml #38

Closed mrwogu closed 11 months ago

mrwogu commented 11 months ago

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
kabel commented 11 months ago

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 d9c35be25cda27e573ad5cb6c49af1a729c5436b.

Give that a try and see if things are better.

mrwogu commented 11 months ago

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