|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2010-02-09 04:44 UTC] tcapacci at acneuro dot com
 Description: ------------ pecl install zip Reproduce code: --------------- configure: creating ./config.status config.status: creating config.h running: make /bin/sh /var/tmp/pear-build-root/zip-1.10.2/libtool --mode=compile gcc -I. -I/tmp/pear/temp/zip -DPHP_ATOM_INC -I/var/tmp/pear-build-root/zip-1.10.2/include -I/var/tmp/pear-build-root/zip-1.10.2/main -I/tmp/pear/temp/zip -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/zip/php_zip.c -o php_zip.lo mkdir .libs gcc -I. -I/tmp/pear/temp/zip -DPHP_ATOM_INC -I/var/tmp/pear-build-root/zip-1.10.2/include -I/var/tmp/pear-build-root/zip-1.10.2/main -I/tmp/pear/temp/zip -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/zip/php_zip.c -fPIC -DPIC -o .libs/php_zip.o /tmp/pear/temp/zip/php_zip.c:30:31: error: ext/pcre/php_pcre.h: No such file or directory /tmp/pear/temp/zip/php_zip.c:715: error: initializer element is not constant /tmp/pear/temp/zip/php_zip.c:715: error: (near initialization for 'zip_functions[0].fname') /tmp/pear/temp/zip/php_zip.c:715: error: expected '}' before 'ZEND_RAW_FENTRY' /tmp/pear/temp/zip/php_zip.c:1112: warning: initialization discards qualifiers from pointer target type make: *** [php_zip.lo] Error 1 ERROR: `make' failed Expected result: ---------------- make complete Actual result: -------------- make: *** [php_zip.lo] Error 1 ERROR: `make' failed I have installed pcre yum install pcre.x86_64 pcre-devel.x86_64 Running Centos 64 bits PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 06:00:01 2025 UTC | 
Is PHP 5.5.11 still supported? If so, I'm facing this issue when compiling PHP: In file included from /home/davi.vidal/.phpenv/php-src/ext/zip/php_zip.h:34:0, from /home/davi.vidal/.phpenv/php-src/ext/zip/php_zip.c:32: /home/davi.vidal/.phpenv/php-src/ext/zip/lib/zip.h:59:21: fatal error: zipconf.h: No such file or directory #include <zipconf.h> ^ compilation terminated. make: *** [ext/zip/php_zip.lo] Error 1In file included from /opt/php-7.3.6/ext/zip/php_zip.h:31:0, from /opt/php-7.3.6/ext/zip/php_zip.c:36: /usr/local/include/zip.h:59:21: 致命错误:zipconf.h:没有那个文件或目录 #include <zipconf.h> ^ 编译中断。 make: *** [ext/zip/php_zip.lo] 错误 1