Any PHP developers hanging around?
On a LEAP 15.2,
I’ve not had to deal with PHP extensions before, when I run the following “pecl install zip” I don’t know how to address the dependency error “checking for libzyp” after the earlier successful “checking libzyp” dependency check when running phpize. Both libzypp and libzypp-devel from the OSS are installed. PHP 7.4 installed from the openSUSE PHP repository (I can provide repo info if requested, but figure it’s not an issue here).
TIA,
TSU
# pecl channel-update pecl.php.net; pecl install zip; exit
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date
downloading zip-1.19.2.tar ...
Starting to download zip-1.19.2.tar (1,032,704 bytes)
.............................................................................................................................................................................................................done: 1,032,704 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
building in /tmp/pear/temp/pear-build-tonyxk2dyl/zip-1.19.2
running: /tmp/pear/temp/zip/configure --with-php-config=/usr/bin/php-config
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/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 we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib
checking for PHP extension directory... /usr/lib64/php7/extensions
checking for PHP installed headers prefix... /usr/include/php7
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking for zip archive read/writesupport... yes, shared
**checking libzip... yes**
checking PHP version... 7.4
checking for pkg-config... /usr/bin/pkg-config
**checking for libzip... not found**
configure: error: Please reinstall the libzip distribution
ERROR: `/tmp/pear/temp/zip/configure --with-php-config=/usr/bin/php-config' failed
exit