Dane, Thanks for your response !
On Monday 01 February 2010 22:50:00 Dane Springmeyer wrote: > You should not need to remove the '#if defined(HAVE_CAIRO)'. > > The error below indicates that you either have two versions of mapnik > installed or otherwise have rundemo linked against a libmapnik > compiled without cairo support. > > I would manually remove any traces of previously installed mapnik > libraries, then clean the built targets and reinstall. > > To clean your built targets do: > > python scons/scons.py -c Yes, I do remember that in the begning in had installed 2 versions of Mapnik. Now to uninstall all versions of Mapnik I followed the following from the link : http://trac.mapnik.org/wiki/MacInstallationSource: ___________________________________________________________________________________________________________________ export PYTHON_PREFIX=/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages export PREFIX=/usr/local ## Uninstall the Python `mapnik` module. sudo rm -fr $PYTHON_PREFIX/mapnik ## Uninstall the mapnik libs, includes, and bin sudo rm -fr $PREFIX/include/mapnik sudo rm -fr $PREFIX/lib/mapnik sudo rm -f $PREFIX/lib/libmapnik.* sudo rm $PREFIX/bin/shapeindex___________________________________________________________________________________________________________________ Then I followed the following steps:___________________________________________________________________________________________________________________ python scons/scons.py -c python scons/scons.py configure python scons/scons.py python scons/scons.py install ___________________________________________________________________________________________________________________ All the above steps went smoothly, Now when I did 'import mapnik' on the python prompt, it resulted in the following error:_________________________ Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/site-packages/mapnik/__init__.py", line 54, in <module> from _mapnik import * ImportError: /usr/lib64/python2.6/site-packages/mapnik/_mapnik.so: undefined symbol: _ZN6mapnik8save_mapERKNS_3MapERKSs ___________________________________________________________________________________________________________________ Because my system is 64 bit OS therefore I modified 'lib' to 'lib64' in the following paths and repeated the whole process: export PYTHON_PREFIX=/System/Library/Frameworks/Python.framework/Versions/2.6/lib64/python2.6/site-packages export PREFIX=/usr/local ## Uninstall the Python `mapnik` module. sudo rm -fr $PYTHON_PREFIX/mapnik ## Uninstall the mapnik libs, includes, and bin sudo rm -fr $PREFIX/include/mapnik sudo rm -fr $PREFIX/lib64/mapnik sudo rm -f $PREFIX/lib64/libmapnik.* sudo rm $PREFIX/bin/shapeindex _________________________________________________________________ But still it didn't help in solving the error: Kindly guide ! -- Regards, Anisha Kaul ------------------------------------- Hi-Tech Gears Limited, Gurgaon, India
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

