Fatal error: Call to undefined function gzcompress()

1,279 views
Skip to first unread message

lumsden

unread,
Aug 12, 2007, 9:19:18 PM8/12/07
to Php Object Generator
Hi

Just popped back to take another look at POG and uploaded it onto our
new Linux Fedora Core 6 server running Apache 2.2.4 along my PHP
5.2.3.

Anyhow installed it fine, created my first object but when I went to
download the zip, I got the below message.

Fatal error: Call to undefined function gzcompress() in /home/websites/
*************.co.uk/html/pog/include/class.zipfile.php on line 91

Don't quite understand this as PHP was configured with --enable-zip.

Perhaps I have missed something obvious.

Cheers

Tim

TT

unread,
Aug 12, 2007, 9:27:39 PM8/12/07
to Php Object Generator
Hi Tim,

One possible reason may be that zlib isn't installed.

Please see this link for additional info:
http://www.codingforums.com/showthread.php?t=2166

Regards

lumsden

unread,
Aug 12, 2007, 10:30:44 PM8/12/07
to Php Object Generator
> One possible reason may be that zlib isn't installed.

I went through the options configure --help and added --with-zlib-dir=/
usr/lib and this did the trick.

Cheers

Tim

Reply all
Reply to author
Forward
0 new messages