Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-24-2010, 11:56 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
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

Last edited by mike_phi; 08-24-2010 at 11:58 AM.
Old 08-24-2010, 12:37 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
zlib1g-dev is correct.

./configure --with-zlib is correct because apt-get will place zlib in a standard location.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nginx Catch-All Host As Front End To Apache For ISPConfig 3 On Debian Lenny LXer Syndicated Linux News 0 05-20-2010 08:00 PM
LXer: How To Install Z-Push On An ISPConfig 3 Server (Debian Lenny) LXer Syndicated Linux News 0 04-14-2010 01:50 PM
LXer: Configuring fail2ban With SquirrelMail On Debian Lenny 5.0/ISPConfig 3 LXer Syndicated Linux News 0 08-31-2009 11:40 AM
How Do I Compile the Kernal in Debian Lenny bruceam Linux - Kernel 1 06-10-2009 02:56 PM
LXer: The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2] LXer Syndicated Linux News 0 02-19-2009 12:00 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration