Never mind, I fixed it myself. At some point, I've rebuilt boost but I didn't rebuild mapnik.
I clean mapnik by running /usr/bin/python scons/scons.py -c and then /usr/bin/python scons/scons.py /usr/bin/python scons/scons.py install and it worked. Btw, under CentOs 5, the libraries generated by boost have *gcc41* in their names, so I had to do: cd /home/vuhung/opt/boost/lib ln -s libboost_filesystem-gcc41-mt.solibboost_filesystem-mt.so ln -s libboost_regex-gcc41-mt.solibboost_regex-mt.so ln -s libboost_iostreams-gcc41-mt.solibboost_iostreams-mt.so ln -s libboost_program_options-gcc41-mt.solibboost_program_options-mt.so ln -s libboost_thread-gcc41-mt.solibboost_thread-mt.so ln -s libboost_python-gcc41-mt.solibboost_python-mt.so If you think this worths to be added to: http://trac.mapnik.org/wiki/InstallationTroubleshooting I will do. On Wed, Nov 19, 2008 at 10:39 PM, Nguyen Vu Hung <[EMAIL PROTECTED]> wrote: > Hi all, > > I've tried to install mapnik and import it from python. Here is what I did: > > 1. CentOs 5.0, gcc 4.1.2, libstdc++-4.1.2, python 2.4.3( default). > > 2. boost_1_37_0]$ cat vh-config.sh > make clean > sh ./configure --prefix=$HOME/opt/boost --with-icu > --with-python=/usr/bin/python > make > make install > > 3. mapnik-0.5.1]$ cat vh-scons.sh > /usr/bin/python scons/scons.py > BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37 > BOOST_LIBS=$HOME/opt/boost/lib > sudo /usr/bin/python scons/scons.py > BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37 > BOOST_LIBS=$HOME/opt/boost/lib install > > Then I tried to import mapnik, but ended up with an error. > 4. $ /usr/bin/python > Python 2.4.3 (#1, May 24 2008, 13:47:28) > [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> from mapnik import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/mapnik/__init__.py", line 31, in ? > from _mapnik import * > ImportError: > /home/vuhung/opt/boost/lib/libboost_python-gcc41-mt-1_37.so.1.37.0: > undefined symbol: _Py_RefTotal > > I am new to both boost, python and mapnik. > > Any ideas? > > > -- > Best Regards, > Nguyen Hung Vu ( Nguyễn Vũ Hưng ) > [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg > A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html > -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

