FAQ
PHP 5.2.14

Docs say to compile w/ zlib you need to use the --with-zlib[=DIR] flag.

This does not work. You need to use --with-zlib --with-zlib-dir=[DIR]

Is this a documentation error or a ./configure error?

Search Discussions

  • Enrico Weigelt at Oct 22, 2010 at 5:07 am

    * lonnyk@gmail.com wrote:
    PHP 5.2.14

    Docs say to compile w/ zlib you need to use the --with-zlib[=DIR] flag.

    This does not work. You need to use --with-zlib --with-zlib-dir=[DIR]

    Is this a documentation error or a ./configure error?
    BTW: recent zlib provides an proper pkg-config descriptor, which
    should be used.


    cu
    --
    ----------------------------------------------------------------------
    Enrico Weigelt, metux IT service -- http://www.metux.de/

    phone: +49 36207 519931 email: weigelt@metux.de
    mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
    ----------------------------------------------------------------------
    Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
    ----------------------------------------------------------------------
  • Enrico Weigelt at Oct 26, 2010 at 12:21 am

    * Lonny K wrote:

    BTW: recent zlib provides an proper pkg-config descriptor, which
    should be used.
    I do not understand how to use this to have it compile correctly with
    --with-zlib[=DIR]
    Can you please elaborate?
    configure.ac has to be changed properly. it's a bit tricky, since
    the zlib importing code is distributed over many places ...


    cu
    --
    ----------------------------------------------------------------------
    Enrico Weigelt, metux IT service -- http://www.metux.de/

    phone: +49 36207 519931 email: weigelt@metux.de
    mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
    ----------------------------------------------------------------------
    Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
    ----------------------------------------------------------------------
  • Antony Dovgal at Oct 26, 2010 at 7:58 am

    On 10/21/2010 07:09 PM, lonnyk@gmail.com wrote:
    PHP 5.2.14

    Docs say to compile w/ zlib you need to use the --with-zlib[=DIR] flag.

    This does not work. You need to use --with-zlib --with-zlib-dir=[DIR]
    No, you don't have to use it, --with-zlib works just fine:

    # ./configure --with-zlib=/no/zlib/there
    ...
    checking for OpenSSL support... no
    checking for Kerberos support... no
    checking for PCRE support... no
    checking for ZLIB support... yes
    checking if the location of ZLIB install directory is defined... no
    configure: error: Cannot find libz

    You can open ext/zlib/config0.m4 and check the logic behind both options.

    --
    Wbr,
    Antony Dovgal
    ---
    http://pinba.org - realtime statistics for PHP

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedOct 21, '10 at 3:09p
activeOct 26, '10 at 7:58a
posts4
users3
websitephp.net

People

Translate

site design / logo © 2022 Grokbase