Subject Re: [firebird-php] Installing GD2 lib on FC3 and PHP 4.3
Author Todd Cary
Well, I have run into a brick wall with the gd library. I downloaded
the png library, libpng-1.2.8-config.tar.gz. I did a successful
configuration and make. When I run the following configuration for
php-4.3.11

./configure --with-interbase=shared,/opt/interbase --with-gd=shared
--with-jpeg-dir=/usr/include --with-zlib-dir=/usr/include
--with-png-dir=/tmp/libpng-1.2.8-config

it is successful, however the make fails when it get to the png and
produces several pages of errors complaining of syntax errors in png.h.

Todd

Milan Babuskov wrote:

>Todd Cary wrote:
>
>
>>I installed the png source code into /usr/lib/png
>>
>>
>
>Installed? How?
>
>
>
>>. So, I set
>>--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.
>
>
>


[Non-text portions of this message have been removed]