LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-24-2010, 10:56 AM   #1
mike_phi
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

or

<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 10:58 AM.
 
Old 08-24-2010, 11:37 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

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

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


Reply



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 07:00 PM
LXer: How To Install Z-Push On An ISPConfig 3 Server (Debian Lenny) LXer Syndicated Linux News 0 04-14-2010 12:50 PM
LXer: Configuring fail2ban With SquirrelMail On Debian Lenny 5.0/ISPConfig 3 LXer Syndicated Linux News 0 08-31-2009 10:40 AM
How Do I Compile the Kernal in Debian Lenny bruceam Linux - Kernel 1 06-10-2009 01:56 PM
LXer: The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2] LXer Syndicated Linux News 0 02-19-2009 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:06 PM.

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