[Mapserver-users] Perl/Library Question

woodbri at swoodbridge.com woodbri at swoodbridge.com
Thu Jul 17 13:10:37 EDT 2003


Steve,

use GD;  means you are use'ing a perl module probably GD.pm that 
probably links in libgd To get it to use the new version you should 
install the new libgd on your system and then reinstall GD.pm

perl -MCPAN -e install GD

or something close to that.

-Steve W.

On 17 Jul 2003 at 12:02, Steve Lehr wrote:

> I'm trying to see if gd2.x will solve a limitation in old gd 1.3 that
> when an irregular shaped polygon is rendered it gets white lines on it
> 
>    ------|
>    |     |
> ---      |  <- problem old gd draws white line here
> |        |
> |--|     |  <- Another white line here.
>    |_____|
> 
> Ok..
> 
> I have the latest version of GD on my box, my question is how do I get
> perl to pick up a different library with the USE command.
> 
> i.e. use GD; picks up the standard old GD library....I'd like to
> specify it to use /installs/gd-2.0.15
> 
> Is this possible?
> Thanks
> 
> Steven Lehr
> Visiting Professor
> Embry-Riddle Aeronautical University (LB159)
> 600 S. Clyde Morris Blvd.
> Daytona Beach, FL 32114-3900
> 386-226-7740
> 
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Joe Smith
> Sent: Thursday, July 17, 2003 11:05 AM To:
> mapserver-users at lists.gis.umn.edu Subject: [Mapserver-users] Mapscript
> problems
> 
> 
> Hi,
> I have been working with mapserver for a few weeks now without too
> much trouble, but I've run into some problems trying to get mapscript
> to compile. It runs fine without the --with-php option, but I'm
> looking to add more functionality.  I'm actually trying to get
> mapscript compiled in two places - my local linux box where i do the
> editing, and on the web server. It doesn't seem to work on either.
> 
> Here's the specs/problem on the local box:
> Linux 9, apache 2.0.47, php 4.3.2, mapserver 3.6.6
> 
> I know what the problem is ; php isn't compiling with
> the --with-regex=system like it should, and I don't know why.  I
> checked phpinfo and the regex section didn't have anything about
> system.  I compile php like this:
> 
> ./configure \
>  --prefix=/usr/local/www/php \
>       --with-config-file-path=/usr/local/www/php \
>       --enable-track-vars \
>  --enable-force-cgi-redirect \
>  --with-regex=system \
>  --with-mysql \
>  --with-zlib \
>  --without-ttf
> make
> make install
> cp -p php.ini-recommended /usr/local/www/php/php.ini
> 
> I tried removing config.cache like some of the posts suggested (and
> make clean), but it did not work.  I'm still getting familiar with
> linux/unix so I wouldn't really know where to look if it was using
> some old version of a file in the compile.
> 
> 
> Here's the specs/problem on the web server:
> FreeBSD 4.4, apache 1.3.22, php 4.0.6, mapserver 3.6.6
> 
> When I try to make mapserver, I get this:
> 
> A bunch of undefined references when it gets to php_mapscript.so
> "Stop in /usr/home/joe/mapserver/mapscript/php3"
> "*** Error code 1"
> 
> Here's my configure line for mapserver:
> ./configure --with-gd=/usr/local --with-php=/usr/local/www/include/php
> 
> I do have root access, and apache and php were already running so I
> don't want to mess with them if I don't have to, since it's a virtual
> server (I could probably recompile php though).  Is anyone familar
> with either of these problems or have any ideas?  Thanks in advance!
> 
> Joe
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the mapserver-users mailing list