PHP 4.3 and Mac OS X
Subject:   --with-zlib fails to find libz, any corrected instructions known?
Date:   2003-01-28 18:50:06
From:   anonymous2
Trying to configure with --with-zlib fails, it reports "cannot find libz".

I'm running a pretty standard, and updated OSX, with Fink installed. Fink doesn't appear to have zlib or libz, but I see there are files /usr/lib/libz.dylib (and libz.1.dylib and libz.1.1.3.dylib) so I've tried --with-zlib=/usr and --with-zlib=/usr/lib neither of which worked.

- Mitra

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • --with-zlib fails to find libz, any corrected instructions known?
    2003-02-28 19:43:17  tychay [View]

    I tried php 4.3.1 distribution with the simple line
    ./configure --with-zlib=/usr
    and it worked fine.

    One thing is where is configure failing. Is it failing here?
    checking for ZLIB support... yes
    checking if the location of ZLIB install directory is defined... yes
    checking for gzgets in -lz... yes

    or is it failing in some other extension? A lot of extensions (domxml, mysql, pdflib, cpdf, etc.) expect zlib. To help it along....

    "--with-zlib=/usr --with-zlib-dir=/usr"

    assuming you have a compatible version of Developer Tools installed (the headers for libz come with it).

    I hope this helps,

    terry chay
    tychay at php dot net