No subject


Fri Jan 31 06:23:24 EST 2014


>From suter  Wed Sep 19 17:36:06 2001
Return-Path: <owner-general at lists.humbug.org.au>
Received: from diadora.client.uq.net.au (IDENT:root at diadora-2 [10.0.1.2])
	by zwitterion.humbug.org.au (8.12.0/8.12.0/Debian -2) with ESMTP id f8J7a6Mc007621
	for <suter at zwitterion.humbug.org.au>; Wed, 19 Sep 2001 17:36:06 +1000
Received: from caliburn.humbug.org.au (caliburn.humbug.org.au [203.15.51.6])
        by diadora.client.uq.net.au (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f8J7a6r9005645
        for <suter at zwitterion.humbug.org.au>; Wed, 19 Sep 2001 17:36:06 +1000
Received: from mdlishum by caliburn.humbug.org.au with local (Exim 3.03 #1)
	id 15jbTY-000P3Y-00
	for general-outgoing at lists.humbug.org.au; Wed, 19 Sep 2001 17:08:52 +1000
Received: from ripper.humanfactors.uq.edu.au ([152.98.217.2] helo=ripper)
	by caliburn.humbug.org.au with esmtp (Exim 3.03 #1)
	id 15jbTU-000P3T-00
	for general at lists.humbug.org.au; Wed, 19 Sep 2001 17:08:48 +1000
Received: from there (trillian.humanfactors.uq.edu.au [152.98.217.3])
	by ripper (Postfix) with SMTP id 546D1106F9D
	for <general at lists.humbug.org.au>; Wed, 19 Sep 2001 16:58:28 +1000 (EST)
Content-Type: text/plain;
  charset="iso-8859-1"
From: Sarah Hollings <sarah at humanfactors.uq.edu.au>
Organization: Key Center for Humanfactors
To: Humbug List <general at lists.humbug.org.au>
Subject: [H-GEN] php stuff
Date: Wed, 19 Sep 2001 16:58:44 +1000
X-Mailer: KMail [version 1.3]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <20010919065828.546D1106F9D at ripper>
Sender: owner-general at lists.humbug.org.au
Precedence: bulk
Reply-To: general at lists.humbug.org.au
X-Loop: general at lists.humbug.org.au
List-Help: <mailto:majordomo at lists.humbug.org.au?subject=help>
List-Post: <mailto:general at lists.humbug.org.au>
List-Subscribe: <mailto: general-request at lists.humbug.org.au?subject=subscribe>
List-Id: semi-serious discussions about Humbug and Unix-related topics <general at lists.humbug.org.au>
List-Unsubscribe: <mailto: general-request at lists.humbug.org.au?subject=unsubscribe>
List-Archive: <http://archive.humbug.org.au/humbug-general/>
Status: RO
Content-Length: 2491
Lines: 57

[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

For anyone interested, here is the fix/es for the problems I was having with 
PHP, mentioned in my recent post.

1)  When you initially set up php, by running the ./configure script, it 
makes various test calls on the libraries it finds to see if the features you 
want to compile in are available.  

For example, if you have compiled GD to /usr/local/lib/libgd.a it will check 
to see if the gdImageCreateFromJpeg call is available in that library, and 
silently turn it off if it isn't.  

If you check the output of ./configure (I use a bash script which calls 
configure as there's a ton of configuration parameters you'll probably want 
to pass in) you can see "y" or "n" answers - but if you miss these as they 
fly past for the image types you want you will get no warning.

When you then compile php using the generated Makefile, it will build just 
fine but you will find you have no jpeg support when you've restarted Apache 
and tried to use a GD call in a php script.  Same goes for the other image 
types.

The only symptom is if you run phpinfo() in a script, you get a listing 
saying gd is enabled, but in the lines below that there will be no entry for 
any other image types.

The fix is to check if you have previously installed other binaries during 
the setup of your system that provide libraries that php is finding first, 
and move them out of the way:
dpkg -l | grep libgd
-or-
rpm -qa | grep libgd

2)  Then you are likely to start running into the build problems - compile 
errors because the include files are wrong.  

Check the directory order 
grep INCLUDES php-2.0.6/config_vars.mk
 (ymmv for versions etc) and if there has been a previous version of gd 
installed, check the include directories for a file "gd.h".  Again move it 
out of the way and compile should then work.

Sez

-- 
Sarah Hollings                                              Ph +61 7 33656080
Information Technology Manager                     Fx +61 7 33656171
     Key Cntr for Humanfactors & Applied Cognitive Psychology 
               at the University of Queensland, Saint Lucia

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list