[Mapserver-users] Gmap75 demo - gd - freetype problem

Gerry Creager N5JXS gerry.creager at tamu.edu
Sun Feb 23 06:43:04 PST 2003


One thing I've learned on RedHat systems when working with anything 
requiring proj, gd, gdal, etc. (any of the supporting packages for 
Mapserver and several other packages I use which also) is that RedHat 
didn't anticipate how *I'd* need to use the packages.

I tend to download and recompile the necessary packages from tarball, 
satisfied in the knowledge that I can either do an uninstall, or if it 
makes my system truly unstable (hasn't happened so far) I can wipe the 
system and start off fresh... and not install the RedHat versions.

Of course, another option is to get the RedHat source RPMs and recompile 
with the appropriate options, then rpm-install that way.

If you'll check the archives, within the last week, DM (I think) sent 
out a cookbook list for bringing up ms3.7 and associated code on RedHat 
8.0 (worked pretty well; thanks!).  The same list can be made to work 
for RH7.3 as well.

Good luck,
gerry

Daniel Morissette wrote:
> Is it possible that PHP and MapScript are not compiled with the same
> version of GD?  The phpinfo() information seems to report that Freetype
> is included, but perhaps the GD that was used to compile MapServer (or
> the libgd.so that MapServer finds at runtime) is another version that
> was not compiled with TTF.  (Make sure you really have only one version
> of GD on your system)
> 
> Or perhaps the problem is related to using GD 2 with MapServer 3.6.x.  I
> have only used GD 1.x with MapServer 3.6 so I don't know if things will
> work fine with GD 2.
> 
> Daniel
> 
> 
>>Lars Schylberg wrote:
>>
>>I have just managed to set up mapserver on our linux machine linux 7.3
>>
>>When I try and run the mapscript demo gmap75 I get the following
>>error.
>>
>>Warning: MapServer Error in msGetLabelSize(): libgd was not built with
>>FreeType font support in
>>
>>    ....    /gmap/htdocs/gmap75.php3 on line 548
>>
>>Fatal error: Call to a member function on a non-object in  ....
>> /gmap/htdocs/gmap75.php3 on line 549
>>
>>My phpinfo_mapscript.phtml tells the following:
>>
>>MapScript
>>
>>MapScript Version ($Revision: 1.104.2.5 $ $Date: 2002/10/28 21:47:53
>>$)
>>MapServer version 3.6.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>>SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>>INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE
>> GD Support                    enabled
>> GD Version                    bundled (2.0 compatible)
>> FreeType Support              enabled
>> FreeType Linkage              with TTF library
>> GIF Read Support              enabled
>> PNG Support                   enabled
>> WBMP Support                  enabled
>>
>>Could some try and explain what is wrong.  Is there a problem with
>>gd2. I have compiled the latest
>>2.0.11.   We are running only phtml as cgi.  All other extensions are
>>modules. I have not recompiled php.
>>But I have removed the old gd as told in the examples on
>>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73
>>
>>Hope someone can help med out.
>>
>>Lars Schylberg
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


-- 
Gerry Creager -- gerry.creager at tamu.edu
Network Engineering -- AATLT, Texas A&M University	
Cell: 979.229.4301 Office: 979.458.4020 FAX: 979.847.8578
Page: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843




More information about the MapServer-users mailing list