Welcome to WebmasterWorld Guest from 54.145.235.72

Forum Moderators: coopster & jatar k

Installing Zip Functions

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

5+ Year Member



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 Jul 22, 2010 (gmt 0)

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



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 Jul 22, 2010 (gmt 0)

5+ Year Member



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

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month