Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Installing Zip Functions

3:36 pm on Jul 22, 2010 (gmt 0)

New User

5+ Year Member

joined:June 2, 2008
posts: 6
votes: 0

Hi everyone,

I really need some help installing zip functionality on my virtual dedicated web server. The application needs to use the zip_open function, but the webserver doesn't have this activated by default. The webhosting company told me that I need to install this manually through SSH command line.

I've tried following the ONLY tutorial that I have found so far here (http://www.wowtutorial.org/tutorial/66.html), but I seem to get stuck at the 'make' command. I'm getting an error after it does some processing.

/usr/src/zip-1.10.2/php_zip.c:30:31: error: ext/pcre/php_pcre.h: No such file or directory
/usr/src/zip-1.10.2/php_zip.c:715: error: initializer element is not constant
/usr/src/zip-1.10.2/php_zip.c:715: error: (near initialization for 'zip_functions[0].fname')
/usr/src/zip-1.10.2/php_zip.c:715: error: expected '}' before 'ZEND_RAW_FENTRY'
/usr/src/zip-1.10.2/php_zip.c:1112: warning: initialization discards qualifiers from pointer target type
make: *** [php_zip.lo] Error 1

Can anyone help give me a step by step solution to this problem, or point me in the right direction?

If it helps, I am running CentOS 5 as the OS.

Thank you!
3:55 pm on July 22, 2010 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
votes: 24

Hi Spuzzum,

Your main problem is a missing header file php_pcre.h which is needed to compile the source. Unfortunately I don't know which package that header file should be in.
9:31 pm on July 22, 2010 (gmt 0)

New User

5+ Year Member

joined:June 2, 2008
votes: 0

I've decided to save myself the headache and pay the webhost to do this for me. :)