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
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users