Mapscript error when PHP compiled with GD support

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Mon Apr 4 12:48:19 PDT 2005


Try -with-gd=/usr

Camden Daily wrote:
> I hadn't realized that about PHP using it's own version of GD.  That
> sounds like it could very well be the issue.  However, now I'm having
> issues even compiling PHP with GD.  For some reason, it wants to find
> gd.h and libgd.so in the same directory (even though one's under
> /usr/lib and the other's in /usr/include)  If I point -with-gd= to
> one, it balks on not finding the other.
>
> Gotta love linux sometimes.  I even tried adding an --includedir
> option for the other one, but no luck.  Guess I've gotta hack the
> makefile now.
>
> I'll let you know if things clear up once I can get things to compile nicely.
>
> -Camden
>
>
>>Wiser men than me have said previously on this list that if you want to
>>build both PHP and PHP/Mapscript with GD, you better make sure you
>>build them both with the *same* GD. Otherwise strange things like the
>>one you are seeing can happen.
>>
>>So, if you have (for instance) installed GD into /usr/local and used
>>that GD for building php_mapscript, then you also need to build php
>>using --with-gd=/usr/local. By simply using --with-gd you get a version
>>of GD that is included with PHP, which is likely different from your
>>installed version of GD.
>>
>>HTH,
>>--
>>Toomas
>>
>
>



More information about the MapServer-users mailing list