Re: Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found
| From: | Richard Lynch | Date: | Fri, 10 Dec 2004 21:23:51 +0000 |
| Subject: | Re: Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203975@lists.php.net to get a copy of this message | ||
Raymond C. Rodgers wrote:
> Having previously built PHP 4.x on OpenBSD 3.x in the past, I'm running
> into some difficulties configuring PHP 5.0.2 currently. On a fresh
> install of OpenBSD, I have confirmed installation of libpng 1.2.5p5, but
> no matter what png related switch ("--with-png-dir=" and "--with-png=")
> I use for configure, I get png.h not found.
>
> I have done a bit of searching but haven't been able to come up with any
> other similar problems... Does anyone have any idea about how to correct
> this?
Where exactly is png.h in your directory system?
If libpng is installed, it should be there.
What are you using after the --with-png-dir=
Whatever you are using, it must be a directory far enough *above* png.h to
encompass not only '/include/*/png.h' but also '/lib/*/*png*.so/
Many beginners mistakenly pass in the directory that contains 'png.h' --
Alas, PHP *also* needs to find all the png library binary files (.so) in
order to pull them in.
So starting at png.h, work your way 'up' until you hit a directory that
also has *png*.so down inside it somewhere (perhaps one or two levels
deep) and pass *that* directory with --with-png-dir=
--
Like Music?
http://l-i-e.com/artists.htm