Thanks William,<br><br>That worked wonderfully. <br><br>Concerning the Ruby Mapscript, I wouldn't know where to start trying to build it from the mapscriptvars and libmap.a files. I'm very new to the Mac environment and *nix environment in general.
<br><br>I had already built and installed the libraries required for Mapserver, but using your precompiled libraries sounds like a much more efficient solution so I'll be doing that in the future.<br><br>Thanks again,<br>
--Andy<br><br><div><span class="gmail_quote">On 7/12/06, <b class="gmail_sendername">William Kyngesburye</b> <<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Known problem with Xcode 2.2+. In <a href="http://makefile.in">makefile.in</a> change the LD line to:<br><br>LD=@CXX@<br><br>then reconfigure and make.<br><br><br>Also, you can reuse my Graphics Libs and GIS Libs so you don't have
<br>to build that whole mess. Edit configure (grep find and replace in<br>BBEdit or TextWrangler works great for this) and replace all (using<br>word/case sensitive):<br><br>(lib(png|jpeg|gd|proj|pdf|Xpm)).a<br><br>with:
<br><br>\1.dylib<br><br>And specify locations for all libraries in configure, since they're<br>not in 'normal' locations that would be found automatically.<br><br>./configure --with-zlib=/usr --with-proj=/usr/local/gislibs --with-
<br>gdal=/usr/local/gislibs/bin/gdal-config --with-ogr --with-gd=/usr/<br>local/graphicslibs --with-png=/usr/local/graphicslibs --with-jpeg=/<br>usr/local/graphicslibs --with-freetype=/usr/local/graphicslibs/bin/<br>freetype-config --with-xpm=/usr/local/graphicslibs --with-pdf=/usr/
<br>local/graphicslibs --with-ming=/usr/local/graphicslibs --with-geos=/<br>usr/local/gislibs/bin/geos-config --with-postgis=/usr/local/pgsql/bin/<br>pg_config --with-wfs --with-wcs --with-wfsclient --with-wmsclient --<br>
with-curl-config=/usr/local/baselibs/bin/curl-config<br><br><br>I probably won't do a Ruby MapScript binary for my Mac OS X package,<br>more stuff to install just to get it going. I think I tried<br>installing SWIG a while back with not much luck, but it's probably
<br>improved now.<br><br>One possibility just occurred to me to simplify things - many (all?)<br>of the mapscript variations use the mapscriptvars file generated<br>during the mapserv build, and libmap.a of course. I could add those
<br>to the package so all you would need to do is the Ruby build. If you<br>would like to try this, let me know.<br><br><br>On Jul 11, 2006, at 4:53 PM, Andrew Wiens wrote:<br><br>> Hello. I've been trying to build mapserver on Mac OS X
10.4.7<br>> (Intel), but have had no success. I don't think that the available<br>> precompiled binaries will work for my application as I need the<br>> Ruby Mapscript libraries. I've included the error and configure
<br>> output below. Any help solving the problem would be greatly<br>> appreciated. Thanks. --Andy<br>><br>> I'm getting the following error:<br>><br>> gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -
<br>> DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -<br>> DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -<br>> DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR<br>> -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -
<br>> DUSE_ZLIB -I/usr/local/include -I/usr/local/include -I/usr/<br>> local/include -I/usr/local/pgsql/include -I/usr/local/<br>> include shp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -<br>> lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -lpdf -ljpeg -
<br>> lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib -<br>> lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -<br>> lpq -L/usr/local/lib -lgeos -lpthread -liconv -lz -lm -lstdc+
<br>> + -o shp2img<br>> /usr/bin/ld: Undefined symbols:<br>> __Unwind_Resume<br>> collect2: ld returned 1 exit status<br>> make: *** [shp2img] Error 1<br>><br>><br>> My configuration configure options and output are as follows:
<br>><br>> ./configure \<br>> --mandir=/usr/local/share/man \<br>> --with-threads \<br>> --with-proj=/usr/local \<br>> --with-gdal=/usr/local/bin/gdal-config \<br>> --with-ogr=/usr/local/bin/gdal-config \
<br>> --with-gd=/usr/local \<br>> --with-xpm=/usr/X11R6 \<br>> --with-geos=/usr/local/bin/geos-config \<br>> --with-postgis=/usr/local/pgsql/bin/pg_config \<br>> --with-freetype=/usr/local/bin/freetype-config \
<br>> --with-httpd=/usr/sbin/httpd<br>><br>-----<br>William Kyngesburye <<a href="mailto:kyngchaos@kyngchaos.com">kyngchaos@kyngchaos.com</a>><br><a href="http://www.kyngchaos.com/">http://www.kyngchaos.com/
</a><br><br>"Oh, look, I seem to have fallen down a deep, dark hole. Now what<br>does that remind me of? Ah, yes - life."<br><br>- Marvin<br><br></blockquote></div><br>