[Mapserver-users] Error on import mapscript in Python with Mapserver 4.2.1

Sean Gillies sgillies at frii.com
Wed Jul 14 12:04:36 EDT 2004


On Jul 14, 2004, at 9:54 AM, Björn Platzen wrote:

> Hi Sean,
>
>> gdImageSetClip was added to GD in version 2.0.12.  I suspect that you
>> have an early version (before 2.0.12) of GD on your system that is
>> interfering with the GD 2.0.27 you want to use.
>
> Maybe you're right. I have also a mapserver 3.6.5 running wich is
> compiled against gd-2.0.7. This gd is under /usr/lib/ while the new
> compiled gd-2.0.27 is under /usr/local/lib/.
>
> Would it be a way to compile Mapserver with
> --with-gd=static,/path/to/gd-2.0.27
> and then rebuild mapscript??
>
> Thanks ,
>
> Bjoern.
>

Bjoern, I don't statically link and can't say for sure, but I think
this will work.

You will also need to make a small edit to the setup.py file.  There
will be an example in the script of how to statically link mapscript
to GD.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies




More information about the mapserver-users mailing list