Subject | RE: [firebird-php] Installing GD2 lib on FC3 and PHP 4.3 |
---|---|
Author | Nigel Weeks |
Post date | 2005-07-14T22:54:50Z |
> >>. So, I setOh boy, now I know why I run FreeBSD...
> >>--make-png-dir=/usr/lib/png, but I get the error that it
> cannot find
> >>png.h. The configure file has
> >>
> >> if test ! -f $GD_PNG_DIR/png.h; then
> >> { echo "configure: error: png.h not found." 1>&2; exit 1; }
> >> fi
> >>
> >>Do you know how I should change that?
> >>
> >>
> >
> >Well, first check if png.h file is there. Maybe it is in
> some "include"
> >subfolder or something (it's in /usr/include on my system).
> So, if it's
> >/usr/lib/png/png.h try using:
> >
> >GD_PNG_DIR=/usr/lib/png ./configure ...etc.
> >
> >and if it's /usr/lib/png/include/png.h
> >
> >GD_PNG_DIR=/usr/lib/png/include ./configure ...etc.
> >
> >Although, I'm not sure about all this. Perhaps GD has it's
> own version
> >of png header. Try and see if it compiles.
> >
To add the 'interbase.so' into your current PHP:
`cd /usr/ports/database/php5-interbase/`
`make install`
To add the 'gd.so' into your current PHP:
`cd /usr/ports/graphics/php5-gd/`
`make install`
Which is quicker? - mucking around with GD_PNG_DIR and friends above, or a
`make install`...
Nige.