[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP configure png.h problem with GD



Try 

./configure --with-mysql --with-apxs --with-openssl --with-mcrypt
--with-imap --enable-track-vars --enable-force-cgi-redirect
--with-gettext --with-ldap --with-gd --with-jpeg-dir=/usr/local/lib/
--enable-gd-native-ttf --with-zlib-dir=/usr/lib/ --with-png
--with-png-dir=/usr/local/lib/ -I /usr/local/include/libpng

Autoconf looks in dirs which are in the -I or --include if you prefer.

On Wed, Feb 04, 2004 at 01:00:13PM +0000, Paul Branston wrote:
> This is where png.h is on this system. Is the --with-png-dir bit
> correct ?
> 
> arwen% pkg_info -a|grep png
> png-1.2.5p1        library for manipulating PNG images
> arwen% locate png.h                               
> /home/apb/mozilla/modules/libimg/png/png.h
> /usr/local/include/libpng/png.h
> /usr/local/share/gimp/help/C/filters/png.html
> 
> On Wed, Feb 04, 2004 at 01:32:06PM +0100, Sacha Ligthert wrote:
> > Hi List,
> > 
> > I've looked through google and mailinglist arcives, but coudn't find a 
> > solution to my problem.
> > http://marc.theaimsgroup.com/?l=openbsd-misc&m=105916925819344&w=2
> > describes a similar problem but with a different cause. (His being an 
> > unpatched configure, fixed by now in 4.3.4 (assuming))
> > 
> > I try to compile PHP 4.3.4 with the folowing configure string:
> > ./configure --with-mysql --with-apxs --with-openssl --with-mcrypt 
> > --with-imap --enable-track-vars --enable-force-cgi-redirect 
> > --with-gettext --with-ldap --with-gd --with-jpeg-dir=/usr/local/lib/ 
> > --enable-gd-native-ttf --with-zlib-dir=/usr/lib/ --with-png 
> > --with-png-dir=/usr/local/lib/
> > 
> > This results with the following error:
> > "configure: error: png.h not found."
> >  (I've searched with google with no relevant result)
> > 
> > I am trying to compile:
> > PHP 4.3.4 with GD 1.8.3, png-1.2.5p1 and jpeg-6b
> > 
> > My question: Does anybody know how to resolve this issues?
> > 
> > Greetings,
> > 
> > Sacha Ligthert
> > 
> > PS: I tried installing PHP4 from packages with extra plug-in's/Featurs 
> > like imap,mysql and GD.. But MySQL seemed to have disappeared then on my 
> > install.
> > Thats why I've decided to get back to source installs.
> > 
> 
> -- 
> /*
>  *  Paul Branston
>  *  Unix Consultant, Perseus Computer Consultants Ltd.
>  *  Mobile:       07860 447931
>  *  Leeds office: 0113 2635584
>  *  Office: 0845 0513970
>  */
> 

-- 
/*
 *  Paul Branston
 *  Unix Consultant, Perseus Computer Consultants Ltd.
 *  Mobile:       07860 447931
 *  Leeds office: 0113 2635584
 *  Office: 0845 0513970
 */