[Mapserver-users] building Mapserver 3.6.5 on Mac OS X 10.2.5

John Oram mapserver at oram.com
Fri May 9 20:56:03 EDT 2003


Due to vigilant web-based research, I just figured out that the  
shapelib is included in the gdal distribution.

Aaron, I'm not sure what errors you're seeing, but I stumbled across  
this reference in the archives:

http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/ 
0301/msg00112.html?line=59#hilite

So if I read this correctly, if you do "make install" in the gdal  
directory, you can just use     "--with-gdal" in the Mapserver  
./configure, unless it's not in your path, in which case you'd have to  
tell it

"--with-gdal=/usr/local/lib"

If you don't do "make install" then you have to point it at

"--with-gdal=../gdal-1.1.7/apps/gdal-config"

Looks like I'm going the latter route as I got an error when I tried  
"make" on gdal.

-John


On Friday, May 9, 2003, at 12:19  PM, Aaron D. Hunt wrote:

> I did have gdal-1.1.7 and I just installed gdal-1.1.8. How can I clean  
> out
> the old one if this is the problem?
>
> Thanks
> Aaron
> ----- Original Message -----
> From: "John Oram" <mapserver at oram.com>
> To: "Daniel Morissette" <morissette at dmsolutions.ca>
> Cc: <mapserver-users at lists.gis.umn.edu>
> Sent: Friday, May 09, 2003 2:33 PM
> Subject: Re: [Mapserver-users] building Mapserver 3.6.5 on Mac OS X  
> 10.2.5
>
>
>> Daniel et al-
>>
>> Yup, looks like my original download of the tar.gz got truncated, or
>> didn't ungzip or untar properly.  Redownloaded via cURL and
>> mapscript/php3 is there.  Thanks for the tip.
>>
>> As for my latest entertaining error (boy, this sure is a good way to
>> learn about the intricacies of software build :) when I make  
>> Mapserver,
>> I get this error:
>>
>> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
>> -DUSE_PROJ_API_H -DUSE_WMS    -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
>> -DUSE_GD_WBMP -DUSE_GD_FT
>> -I/usr/local/src/mapserver-3.6.5/../gd-1.8.4              shp2img.c -o
>> shp2img.o
>> gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
>> -DUSE_PROJ_API_H -DUSE_WMS    -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
>> -DUSE_GD_WBMP -DUSE_GD_FT
>> -I/usr/local/src/mapserver-3.6.5/../gd-1.8.4              shp2img.o
>> -L. -lmap -L/usr/local/src/mapserver-3.6.5/../gd-1.8.4 -lgd -ljpeg
>> -L/usr/local/lib -lpng -lz  -ljpeg  -L/usr/local/lib -lpng -lz -lproj
>> -ljpeg          -lm   -o shp2img
>> ld: Undefined symbols:
>> ___gxx_personality_v0
>> make: *** [shp2img] Error 1
>>
>> I searched the archives and found the suggestion by Norman Vine to add
>> "--with-xpm=no" but this didn't help matters.  (I used ./configure
>> --with-jpeg --with-gd=../gd-1.8.4 --with-proj
>> --with-zlib=/usr/local/lib --with-png=/usr/local/lib
>> --with-php=/usr/local/src/php-4.3.1 --with-xpm=no)
>>
>> This may or may not be related to another question I have -- I saw a
>> reference to shapelib-1.2.10 -- I downloaded it and have it in my
>> /usr/local/src.  I didn't see any mention of it in any of the install
>> instructions I've seen (for any OS) and wasn't able to tell if this  
>> was
>> bonus material or required to import shapefiles.  Could this be  
>> causing
>> the shp2img error I'm seeing?
>>
>> Confusedly yours,
>>    John
>>
>>
>>
>> On Thursday, May 8, 2003, at 04:55  PM, Daniel Morissette wrote:
>>
>>> John Oram wrote:
>>>>
>>>>         updating cache ./config.cache
>>>>         creating ./config.status
>>>>         creating Makefile
>>>>         mkdir: mapscript/php3: No such file or directory
>>>>         creating mapscript/php3/Makefile
>>>>         sed: ./mapscript/php3/Makefile.in: No such file or directory
>>>
>>>
>>> Seems like you are missing some files in the source code distribution
>>> that you got, or the directory structure got lost for some reason.
>>>
>>> You should have a subdirectory called mapscript/php3, and it should
>>> contain a file called mapscript/php3/Makefile.in, plus other source
>>> files, etc.
>>>
>>> -- 
>>> ------------------------------------------------------------
>>>  Daniel Morissette               morissette at dmsolutions.ca
>>>  DM Solutions Group              http://www.dmsolutions.ca/
>>> ------------------------------------------------------------
>>
>> _______________________________________________
>> 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