Re: Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found

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

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux