LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2010, 09:52 AM   #1
jonniebigodes
Member
 
Registered: Feb 2006
Posts: 42

Rep: Reputation: 15
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
 
Old 10-27-2010, 10:22 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
You need to install pcre-devel. For example:
Code:
yum -y install pcre-devel
updatedb
 
Old 10-27-2010, 11:41 AM   #3
jonniebigodes
Member
 
Registered: Feb 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Magento Install: dom extension and mcrypt extension mjdb Linux - Newbie 0 02-21-2009 02:58 AM
Installing PEAR on a system which is configured '--without pear' swiftguy121 Linux - Software 1 07-10-2007 07:45 PM
php pear/pecl zip extension slackamp Slackware 1 06-11-2007 08:55 PM
install Pear Net/SMTP, Pear Log and Pear DB modules cccc Debian 0 02-26-2007 08:33 AM
PEAR will not install Moebius01 Mandriva 1 11-27-2003 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration