Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Compile php with zlib on Debian Lenny (Debian 5.0)

    I need to ensure that PHP is compiled with zlib as I would like to use the zip functionality provided with net2ftp.

    which option would I use with the php configure script

    <php-x-x-dir>/configure --with-zlib


    <php-x-x-dir>/configure --with-zlib-dir=/usr

    or both

    <php-x-x-dir>/configure --with-zlib --with-zlib-dir=/usr

    before compiling, what apt-get install commands do I need to perform to ensure I have zlib on my system
    as I am not to sure as to which library to use I was thinking of using the following please confirm if this is correct.

    apt-get install zlib1g-dbg zlib1g zlib1g-dev

    Regards Mic

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    For what i can see on the net, the php provided has already the zlib extension:

    Debian -- Details of package libapache2-mod-php5 in lenny

    The following extensions are built in: bcmath bz2 calendar ctype date dba dom exif filter ftp gettext hash iconv json libxml mbstring mime_magic openssl pcre posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts