Subject Re: [firebird-php] Installing GD2 lib on FC3 and PHP 4.3
Author Todd Cary
And I spoke before checking the error logs!

PHP Warning: Unknown(): Invalid library (maybe not a PHP library)
'libgd.so.2' in Unknown on line 0

Back to square one...

Todd

Todd Cary wrote:

>I downloaded php's recommended GD2 library from
>http://www.boutell.com/gd/. After installing it, I did a
>
> find / -name "gd"
>
>and found /usr/lib/libgd.so.2.
>
>After creating a gd.ini in /etc/php.d with extension=libgd.so.2, I put a
>copy of libgd.so.2 in the appropriate dir, /usr/lib/php4.
>
>httpd has been restarted, but I do not see "gd" listed other than in the
>configuration listings. Is this normal?
>
>http://209.204.172.137:81/testphp.php
>
>Todd
>
>Milan Babuskov wrote:
>
>
>
>>Todd Cary wrote:
>>
>>
>>
>>
>>>Well, I have run into a brick wall with the gd library. I downloaded
>>>the png library, libpng-1.2.8-config.tar.gz
>>>
>>>
>>>
>>>
>>Strange. I never expected library to have a word "config" in package. If
>>you run RH or FC, you should be able to simply install .rpm package for
>>it. It should be called libpng-devel.rpm or something similar.
>>
>>
>>
>>
>>
>>>I did a successful configuration and make
>>>
>>>
>>>
>>>
>>And "make install" afterwards I suppose?
>>
>>
>>
>>
>>
>>>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.
>>>
>>>
>>>
>>>
>>So my guess that there are various versions of png was correct. On all
>>systems I have, png can be found in two locations. So, try using:
>>
>>--with-png-dir=/usr/include/libpng
>>
>>or
>>
>>--with-png-dir=/usr/include
>>
>>...as these seem like a standard location for png library.
>>
>>
>>
>>
>>
>
>
>[Non-text portions of this message have been removed]
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>


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