For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > February 2005 > php install zlib error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php install zlib error
Spencer Plantier

2005-02-08, 3:57 pm

I am trying to compile php and I get the following error:

configure: error: Cannot find libz
#

I have tried a couple of different commands like:
CFLAGS=3D'-DEAPT' ./configure --with-apxs2=3D/usr/local/apache2/bin/apxs
--with-mysql=3D/opt/sfw/mysql --with-zlib=3D/var/tmp/zlib-1.2.1
--with-gd=3D/opt/sfw/include

I have apache and mysql working currently.

Any help would be appreciated.

Thanks


Spencer Plantier
System Network Administrator

301 Gregson Dr
Cary, NC 27511
Office 919-379-8513
Cell 919-272-8833
spencer.plantier@stratech.com


redconfetti

2005-02-28, 6:37 am

Download the zlib development package. zlib-devel-1.2.2.2-1.i386.html

I rely on Yellowdog Package Manager (yum) to install the libraries I need. To know the name of the development version, use rpmfind.net to see if the development version exists. I've had this happen before where I was downloading libstdc or some other standard library, and I found out the problem was that I didn't have the development package of that library. Same goes for this, the command "yum install zlib-devel" installed the package, and then PHP got past the zlib....

....instead it got stuck on Curl

I actually got through the Curl problem, and more. If you have any other hangups, I think I've figured out how to get the development libraries installed, even if you have to do it via the right order RPM packages which are dependent on each other.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com