Re: Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found
| From: | Raymond C. Rodgers | Date: | Sun, 12 Dec 2004 20:49:03 +0000 |
| Subject: | Re: Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204118@lists.php.net to get a copy of this message | ||
On Fri, 2004-12-10 at 13:23, Richard Lynch wrote:
> 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=
The problem was solved by making symlinks from the actual location of
the png headers (/usr/local/include/libpng) to a slightly higher
location (/usr/local/include). Previously attempting to point
"--with-png-dir=" to either /usr/local/ didn't work. I found the tip
about making symlinks to correct this issue by sheer luck.
Raymond