From owner-freebsd-questions@FreeBSD.ORG Sat Oct 3 17:53:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2A08106566B for ; Sat, 3 Oct 2009 17:53:59 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 3284A8FC1C for ; Sat, 3 Oct 2009 17:53:59 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mu8nu-00081u-5I for freebsd-questions@freebsd.org; Sat, 03 Oct 2009 19:53:58 +0200 Received: from pool-70-21-17-243.res.east.verizon.net ([70.21.17.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Oct 2009 19:53:58 +0200 Received: from nightrecon by pool-70-21-17-243.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Oct 2009 19:53:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sat, 03 Oct 2009 13:54:21 -0400 Lines: 47 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-70-21-17-243.res.east.verizon.net Sender: news Subject: Re: ports have made me lazy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Oct 2009 17:53:59 -0000 Vince Sabio wrote: > I need to install zlib (not zlibc), and AFACT it is not included in > ports. When I look at the zlib web site, I see that there are several > (not a lot, but several) dependencies for the installation -- and I > think, "OH NO, NOT DEPENDENCIES!" Or something like that. > > I blame it on ports. They have made me lazy. I am a victim. ;-) > > Anyway, and more to the point, am I missing something? Is zlib really > not included in ports? If not, is there an automated/semi-automated > means of installing it -- or am I back to the old days of installing > dependencies manually? Why not use the one that came with the system? /lib/libz.so.4 You won't be happy if you manage to get two of them installed; use the one already present in the system by default. > (I have had two servers go toes up in three days, so if I've missed > the obvious here, well, it wouldn't surprise me. Just administer clue > in the standard manner, and I'll get with the program.) This is different. If by some odd chance you are talking about this in php.ini: zlib.output_handler = /lib/libz.so.4 - I have noticed a problem a time or two in the past with certain PHP apps. I run with mod_deflate also and sometimes PHP apps balk at running with both. The advantage of using libz in php.ini is it compresses the PHP output stream, while mod_deflate is only good for static content. The above is kind of confusing, but wrt PHP there can be a difficulty if the app has written in it's own zlib compression routines internally. You can't do the compression in PHP twice. On apps where I have experienced problems, it was either turn off libz compression in php.ini or disable the .gz compression setting in the app's setup/configuration utility. I always opted for the latter, as this would maintain the ability for other apps in a default fashion. You'll know if this problem is present if when you try and access a PHP page you either get a page full of garbage or the server errors/crashes with a 500 server error. Just to be thorough, there is also a php5-zlib extension, which the construction of some apps may require. -Mike