Hello gurus, <br>While getting far into the installation process, I'm hung up when running the make command for osm2pgsql on Mac OS X10.6. My initial guess is that I have a library somewhere that's not being found or is not installed. I have no idea where to start. Here are the commands I'm running in terminal. All are great until make:<br>
<br>==================<br>svn co <a href="http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/">http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/</a><br><br>cd osm2pgsql<br><br>./autogen.sh<br>
<br>./configure<br><br>#(I was running into other errors before adding the following where pg_config command could not be found)<br>export PATH="/usr/local/pgsql/bin/pg_config:$PATH"<br><br>PATH=$PATH:/Library/Frameworks/GEOS.framework/unix/bin/ CFLAGS="-I/Library/Frameworks/PROJ.framework/unix/include" LDFLAGS="-L/Library/Frameworks/PROJ.framework/unix/lib/" make<br>
==================<br><br>That last bit (with or without the extra flags and such) prints out a whole bunch of lines, ending with:<br><br>==================<br>...<br>ld: symbol(s) not found<br>collect2: ld returned 1 exit status<br>
make: *** [osm2pgsql] Error 1<br>==================<br><br>Other lines of interest:<br>==================<br>...<br>ld: warning: in /opt/local/lib/libxml2.dylib, file is not of required architecture<br>ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture<br>
ld: warning: in /opt/local/lib/libiconv.dylib, file is not of required architecture<br>ld: warning: in /opt/local/lib/libgeos.dylib, file is not of required architecture<br>ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture<br>
Undefined symbols:<br> "___cxa_call_unexpected", referenced from:<br> std::auto_ptr<geos::geom::Geometry>::operator=(std::auto_ptr_ref<geos::geom::Geometry>)in build_geometry.o<br> std::auto_ptr<geos::geom::CoordinateSequence>::operator=(std::auto_ptr_ref<geos::geom::CoordinateSequence>)in build_geometry.o<br>
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:<br>
__gnu_cxx::new_allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::construct(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in build_geometry.o<br>
void std::_Construct<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in build_geometry.o<br>
std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in build_geometry.o<br>
"geos::io::WKTReader::WKTReader(geos::geom::GeometryFactory const*)", referenced from:<br> _parse_wkt in build_geometry.o<br> "geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*) const", referenced from:<br>
_build_geometry in build_geometry.o<br> _build_geometry in build_geometry.o<br> _get_wkt_split in build_geometry.o<br> _get_wkt_simple in build_geometry.o<br> "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::length() const", referenced from:<br>
_get_wkt in build_geometry.o<br> _get_wkt in build_geometry.o<br> "operator delete(void*)", referenced from:<br> __gnu_cxx::new_allocator<double>::deallocate(double*, unsigned long)in build_geometry.o<br>
__gnu_cxx::new_allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::deallocate(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long)in build_geometry.o<br>
__gnu_cxx::new_allocator<geos::geom::Geometry*>::deallocate(geos::geom::Geometry**, unsigned long)in build_geometry.o<br> __gnu_cxx::new_allocator<geos::geom::LineString*>::deallocate(geos::geom::LineString**, unsigned long)in build_geometry.o<br>
std::auto_ptr<std::vector<geos::geom::LineString*, std::allocator<geos::geom::LineString*> > >::~auto_ptr()in build_geometry.o<br> std::auto_ptr<std::vector<geos::geom::Geometry*, std::allocator<geos::geom::Geometry*> > >::~auto_ptr()in build_geometry.o<br>
"std::allocator<char>::~allocator()", referenced from:<br> _parse_wkt in build_geometry.o<br> _parse_wkt in build_geometry.o<br> "_xmlCleanupParser", referenced from:<br> _main in osm2pgsql.o<br>
"geos::geom::GeometryFactory::~GeometryFactory()", referenced from:<br> _build_geometry in build_geometry.o<br> _build_geometry in build_geometry.o<br> _parse_wkt in build_geometry.o<br> _parse_wkt in build_geometry.o<br>
_get_wkt_split in build_geometry.o<br> _get_wkt_split in build_geometry.o<br> _get_wkt_simple in build_geometry.o<br> _get_wkt_simple in build_geometry.o<br>...<br>==================<br>… many more like this.<br>
<br>Any thoughts on how to resolve this issue? Thanks much for your advise in advance. <br><br>Best regards,<br><br>Chris<br>