What are you trying to do?
I tried installing php-spx on my macbook
What platform, and PIE version are you using?
(add the output of pie show -v, and information about which OS you're using etc.)
➜ ~ pie show -v
🥧 PHP Installer for Extensions (PIE) 1.4.10, from The PHP Foundation
You are running PHP 8.5.10
Target PHP installation: 8.5.10 nts, on Linux/OSX/etc arm64 (from /opt/homebrew/Cellar/php/8.5.10/bin/php)
Using pie.json: /Users/staabm/.pie/php8.5_2036b5c7c62deab97d0b27bd8a231841/pie.json
Using pie.json: /Users/staabm/.pie/php8.5_2036b5c7c62deab97d0b27bd8a231841/pie.json
Tip: to include extensions in this list that PIE does not manage, use the --all flag.
Loaded PIE extensions:
(none)
Steps to reproduce the issue
pie install noisebynorthwest/php-spx --with-zlib-dir=/opt/homebrew/opt/zlib
What do you expect to happen?
successfull build of the extension and getting ready for first use
What is actually happening
Install failed, /opt/homebrew/lib/php/pecl/20240925/spx.so was not installed.
Complete logs/output
➜ ~ pie install noisebynorthwest/php-spx --with-zlib-dir=/opt/homebrew/opt/zlib
🥧 PHP Installer for Extensions (PIE) 1.4.10, from The PHP Foundation
This command may need elevated privileges, and may prompt you for your password.
You are running PHP 8.5.10
Target PHP installation: 8.5.10 nts, on Linux/OSX/etc arm64 (from /opt/homebrew/Cellar/php/8.5.10/bin/php)
Found package: noisebynorthwest/php-spx:v0.4.22 which provides ext-spx
Extracted noisebynorthwest/php-spx:v0.4.22 source to: /Users/staabm/.pie/php8.5_2036b5c7c62deab97d0b27bd8a231841/vendor/noisebynorthwest/php-spx
phpize complete.
Configure complete with options: --with-zlib-dir=/opt/homebrew/opt/zlib --with-php-config=/opt/homebrew/bin/php-config
Build complete: /Users/staabm/.pie/php8.5_2036b5c7c62deab97d0b27bd8a231841/vendor/noisebynorthwest/php-spx/modules/spx.so
In UnixInstall.php line 111:
Install failed, /opt/homebrew/lib/php/pecl/20240925/spx.so was not installed.
install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--no-cache] [--allow-non-interactive-project-install] [--auto-install-build-tools] [--no-build-tools-check] [--auto-install-system-dependencies] [--no-system-dependencies-check] [--enable-spx] [--enable-spx-dev] [--with-zlib-dir WITH-ZLIB-DIR] [--] [<requested-package-and-version>]
I am using --with-zlib-dir=/opt/homebrew/opt/zlib after having installed it via brew install zlib
Anything else?
running without --with-php-config lead to (thats why I am using the option)
➜ ~ pie install noisebynorthwest/php-spx
🥧 PHP Installer for Extensions (PIE) 1.4.10, from The PHP Foundation
This command may need elevated privileges, and may prompt you for your password.
You are running PHP 8.5.10
Target PHP installation: 8.5.10 nts, on Linux/OSX/etc arm64 (from /opt/homebrew/Cellar/php/8.5.10/bin/php)
Found package: noisebynorthwest/php-spx:v0.4.22 which provides ext-spx
Extracted noisebynorthwest/php-spx:v0.4.22 source to: /Users/staabm/.pie/php8.5_2036b5c7c62deab97d0b27bd8a231841/vendor/noisebynorthwest/php-spx
phpize complete.
In Process.php line 271:
The command "'./configure' '--with-php-config=/opt/homebrew/bin/php-config'" failed.
Exit Code: 1(General error)
Working directory: /Users/staabm/.pie/php8.5_2036b5c7c62deab97d0b27bd8a231841/vendor/noisebynorthwest/php-spx
Output:
================
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... aarch64-apple-darwin25.6.0
checking host system type... aarch64-apple-darwin25.6.0
checking target system type... aarch64-apple-darwin25.6.0
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for pkg-config... /opt/homebrew/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C23 features... -std=gnu23
checking how to run the C preprocessor... cc -std=gnu23 -E
checking for egrep -e... (cached) /usr/bin/grep -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /opt/homebrew/Cellar/php/8.5.10
checking for PHP includes... -I/opt/homebrew/Cellar/php/8.5.10/include/php -I/opt/homebrew/Cellar/php/8.5.10/include/php/main -I/opt/homebrew/Cellar/php/8.5.10/include/php/TSRM -I/opt/homebrew/Cellar/php/8.5.1
0/include/php/Zend -I/opt/homebrew/Cellar/php/8.5.10/include/php/ext -I/opt/homebrew/Cellar/php/8.5.10/include/php/ext/date/lib
checking for PHP extension directory... /opt/homebrew/Cellar/php/8.5.10/pecl/20250925
checking for PHP installed headers prefix... /opt/homebrew/Cellar/php/8.5.10/include/php
checking if debugging is enabled... no
checking if PHP is built with thread safety (ZTS)... no
Configuring extension
checking whether to enable SPX extension... yes, shared
checking whether to enable SPX developer build flags... yes, shared
checking for ZLIB... yes, shared
checking for assets path... yes, shared
checking for assets directory... /opt/homebrew/Cellar/php/8.5.10/share/misc/php-spx/assets
checking for zlib header... checking for zlib location...
Error Output:
================
configure: error: spx support requires ZLIB. Use --with-zlib-dir=<DIR> to specify the prefix where ZLIB headers and library are located
install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--no-cache] [--allow-non-interactive-project-install] [--auto-install-build-tools] [--no-build-tools-check] [--auto-install-system-dependencies] [--no-system-dependencies-check] [--enable-spx] [--enable-spx-dev] [--with-zlib-dir WITH-ZLIB-DIR] [--] [<requested-package-and-version>]
What are you trying to do?
I tried installing php-spx on my macbook
What platform, and PIE version are you using?
(add the output of
pie show -v, and information about which OS you're using etc.)Steps to reproduce the issue
pie install noisebynorthwest/php-spx --with-zlib-dir=/opt/homebrew/opt/zlibWhat do you expect to happen?
successfull build of the extension and getting ready for first use
What is actually happening
Install failed, /opt/homebrew/lib/php/pecl/20240925/spx.so was not installed.Complete logs/output
I am using
--with-zlib-dir=/opt/homebrew/opt/zlibafter having installed it viabrew install zlibAnything else?
running without
--with-php-configlead to (thats why I am using the option)