[mapserver-users] Compiling Issues: Ubuntu 8.04 -- libgd and gdFontCacheSetup

Guillaume Sueur guillaume.sueur at neogeo-online.net
Sat Jul 19 13:30:55 EDT 2008


yes, it would. be you probably didn't install it in /usr like you 
specify in your configure.
so try with --with-gd=/usr/local instead

good luck !

Guillaume


Matthew Pettis a écrit :
> Hi,
> 
> I actually downloaded, unpacked, configure/make/make install'ed from
> http://www.libgd.org/releases/gd-2.0.35.tar.gz
> .
> 
> I assume that would be the same thing as your command below?
> 
> thanks,
> Matt
> 
> On Sat, Jul 19, 2008 at 12:28 AM, thomas bonfort
> <thomas.bonfort at gmail.com> wrote:
>> hi,
>> have you installed the libgd development packages ?
>>
>> # apt-get install libgd-dev
>>
>> thomas
>>
>> On Sat, Jul 19, 2008 at 1:26 AM, Matthew Pettis
>> <matthew.pettis at gmail.com> wrote:
>>> Hi All,
>>>
>>> This still fails... below is my configuration parameter setup and the
>>> output of configure are below... any suggestions?
>>>
>>> thanks,
>>> matt
>>>
>>> === configure parameters ===
>>> ./configure     --with-ogr=/usr \
>>>                --with-gdal=/usr \
>>>                --with-httpd=/usr/sbin/apache2 \
>>>                --with-wfsclient \
>>>                --with-wmsclient \
>>>                --enable-debug \
>>>                --with-curl=/usr \
>>>                --with-proj=/usr \
>>>                --with-threads \
>>>                --with-tiff \
>>>                --with-libiconv=/usr/local/lib \
>>>                --with-jpeg \
>>>                --with-freetype=/usr/lib/xorg/modules/fonts/ \
>>>                --with-threads \
>>>                --with-wcs \
>>>                --with-xml2-config=/usr/bin/xml2-config \
>>>                --with-gd=/usr \
>>>                --with-php=/usr
>>> ===================
>>>
>>> === output of configure script ===
>>> checking for gcc... gcc
>>> checking for C compiler default output file name... a.out
>>> checking whether the C compiler works... yes
>>> checking whether we are cross compiling... no
>>> checking for suffix of executables...
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether gcc accepts -g... yes
>>> checking for gcc option to accept ANSI C... none needed
>>> checking for g++... g++
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether g++ accepts -g... yes
>>> checking for ranlib... ranlib
>>> checking for flex... no
>>> checking for lex... no
>>> checking for yywrap in -lfl... no
>>> checking for yywrap in -ll... no
>>> checking for bison... no
>>> checking for byacc... no
>>> checking if compiler supports -R... no
>>> checking if compiler supports -Wl,-rpath,... yes
>>> checking for exp in -lm... yes
>>> checking for __gxx_personality_v0 in -lstdc++... yes
>>> checking how to run the C preprocessor... gcc -E
>>> checking for egrep... grep -E
>>> checking for ANSI C header files... yes
>>> checking for strcasecmp... yes
>>> checking for strncasecmp... yes
>>> checking for strdup... yes
>>> checking for strlcat... no
>>> checking for vsnprintf... yes
>>> MapServer Version from mapserver.h: '5.0.3'
>>> configure: checking where FreeType 2.x is installed...
>>>        using libfreetype from -L/usr/lib/xorg/modules/fonts/ -lfreetype
>>> configure: checking where Zlib is installed...
>>> checking for zlibVersion in -lz... yes
>>>        using libz from system libs (-DUSE_ZLIB).
>>> configure: checking where PNG is installed...
>>> checking for png_init_io in -lpng... yes
>>>        using libpng from system libs.
>>> configure: checking whether we should include JPEG support...
>>> checking for jpeg_read_header in -ljpeg... yes
>>>        using libjpeg from system libs.
>>> configure: checking where libXpm is installed...
>>> checking for XpmFreeXpmImage in -lXpm... yes
>>>        using libXpm from system libs.
>>> configure: checking where libiconv is installed...
>>> checking for iconv_open in -lc... yes
>>> checking for libiconv_open in -liconv... yes
>>>        using libiconv from -L -liconv
>>>        libiconv found. Enabling internationalization (-DUSE_ICONV)
>>> configure: checking for GD 2.0.16 or higher...
>>> checking for gdFontCacheSetup in -lgd... no
>>> configure: checking whether GD needs libiconv...
>>> checking for gdFontCacheSetup in -lgd... no
>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr.
>>> Make sure GD 2.0.16 or higher is compiled before calling configure.
>>> You may also get this error if you didn't specify the appropriate
>>> location for one of GD's dependencies (freetype, libpng, libjpeg or
>>> libiconv).
>>> =====================
>>>
>>> On Fri, Jul 18, 2008 at 9:04 AM, Matthew Pettis
>>> <matthew.pettis at gmail.com> wrote:
>>>> Replied to your previous one -- I will try again tonight with your
>>>> suggestion and update the list with the results  -- Thanks again!
>>>>
>>>> Matt
>>>>
>>>> On Fri, Jul 18, 2008 at 8:54 AM, Daniel Morissette
>>>> <dmorissette at mapgears.com> wrote:
>>>>> As I wrote in a previous message, is it possible that you configured using
>>>>> "--with-gd=/usr/lib"? You should use "--with-gd=/usr" only and the configure
>>>>> script should take care of looking in the right subdirectory for each file.
>>>>>
>>>>> Daniel
>>>>>
>>>>> Matthew Pettis wrote:
>>>>>> Hi,
>>>>>>
>>>>>> More and different compiling issues from the one I've already
>>>>>> posted... My configure script errors as shown below (truncated because
>>>>>> I believe the most important part is included):
>>>>>>
>>>>>> ------------------------------------------------------------------------------------------------------------------
>>>>>> configure: checking where libiconv is installed...
>>>>>> checking for iconv_open in -lc... yes
>>>>>> checking for libiconv_open in -liconv... yes
>>>>>>        using libiconv from -L -liconv
>>>>>>        libiconv found. Enabling internationalization (-DUSE_ICONV)
>>>>>> configure: checking for GD 2.0.16 or higher...
>>>>>> checking for gdFontCacheSetup in -lgd... no
>>>>>> configure: checking whether GD needs libiconv...
>>>>>> checking for gdFontCacheSetup in -lgd... no
>>>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib.
>>>>>>  Make sure GD 2.0.16 or higher is compiled before calling configure.
>>>>>> You may also get this error if you didn't specify the appropriate
>>>>>> location for one of GD's dependencies (freetype, libpng, libjpeg or
>>>>>> libiconv).
>>>>>>
>>>>>> ------------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> Now, I have libgd version 2.0.35, so this should work... I have gd.h
>>>>>> and libgd.a/libgd.so (the latter are in /usr/lib/).  I think it is
>>>>>> choking because of the gdFontCacheSetup.  Any idea on how to fix this?
>>>>>>
>>>>>> Thanks,
>>>>>> Matt
>>>>>>
>>>>>
>>>>> --
>>>>> Daniel Morissette
>>>>> http://www.mapgears.com/
>>>>>
>>>>
>>>>
>>>> --
>>>> It is from the wellspring of our despair and the places that we are
>>>> broken that we come to repair the world.
>>>> -- Murray Waas
>>>>
>>>
>>>
>>> --
>>> It is from the wellspring of our despair and the places that we are
>>> broken that we come to repair the world.
>>> -- Murray Waas
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
> 
> 
> 


More information about the mapserver-users mailing list