install zip extension using pear
hi.
i'm trying to install php zip extension through pecl, issuing the following command pecl install zip but i'm getting the following error: Quote: running: make /bin/sh /var/tmp/pear-build-joao/zip-1.10.2/libtool --mode=compile cc -I. -I/var/tmp/zip -DPHP_ATOM_INC -I/var/tmp/pear-build-joao/zip-1.10.2/include -I/var/tmp/pear-build-joao/zip-1.10.2/main -I/var/tmp/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 -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/zip/php_zip.c -o php_zip.lo libtool: compile: cc -I. -I/var/tmp/zip -DPHP_ATOM_INC -I/var/tmp/pear-build-joao/zip-1.10.2/include -I/var/tmp/pear-build-joao/zip-1.10.2/main -I/var/tmp/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 -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/zip/php_zip.c -fPIC -DPIC -o .libs/php_zip.o In file included from /var/tmp/zip/php_zip.c:30: /usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory In file included from /var/tmp/zip/php_zip.c:30: /usr/include/php/ext/pcre/php_pcre.h:37: error: expected =, ,, ;, asm or __attribute__ before * token /usr/include/php/ext/pcre/php_pcre.h:38: error: expected =, ,, ;, asm or __attribute__ before * token /usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before pcre /var/tmp/zip/php_zip.c: In function php_zip_pcre: /var/tmp/zip/php_zip.c:601: error: pcre undeclared (first use in this function) /var/tmp/zip/php_zip.c:601: error: (Each undeclared identifier is reported only once /var/tmp/zip/php_zip.c:601: error: for each function it appears in.) /var/tmp/zip/php_zip.c:601: error: re undeclared (first use in this function) /var/tmp/zip/php_zip.c:602: error: pcre_extra undeclared (first use in this function) make: *** [php_zip.lo] Error 1 ERROR: `make' failed ideas on what might be the problem? thanks in advance |
You need to install pcre-devel. For example:
Code:
yum -y install pcre-devel |
it worked,
the zip extension was installed, configured /etc/php.ini to include the extension and restarted apache and no errors were thrown. thanks for the help |
All times are GMT -5. The time now is 06:12 AM. |