<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Scott,<div><br></div><div>The error you are seeing is related to Boost.Python, and you'll likely need to recompile the 'boost_python' library before continuing to try to install Mapnik.</div><div><br></div><div>Essentially what is happening is that boost python is compiling against different python development headers than the library is linking to. For example, when you built boost python it likely compiled against python2.3 headers but is linking at runtime to python24.</div><div><br></div><div>The other possibility is that you don't even have the python2.4 development headers installed, which you should confirm that you do...</div><div><br></div><div>More comments below...</div><div><br><div><div>On Mar 15, 2010, at 12:12 AM, Scott Pezanowski wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Hi,<br><br>I have been struggling for a while to install Mapnik. I am hoping someone can point me in the right direction for why I am getting the errors I am getting. Or, can someone perhaps point me to a different way to install Mapnik, if possible (an RPM maybe?). If I am posting in the incorrect place, can you let me know a better place.<br><br>My environment is RedHat Linux ES 5, with boost 1.42 installed from source, python 2.4, and mapnik 0.7.0.<span class="Apple-converted-space"> </span><br><br></div></span></blockquote><div><br></div>I just compiled fine on Centos 5.4 the other day, so this setup should work fine.</div><div><br></div><div>The only trick that helped was making sure that 'usr/local/lib' was in ld.so.conf BEFORE compiling mapnik and after installing boost, so that the library was found correctly.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal 'Lucida Grande'; ">sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal 'Lucida Grande'; min-height: 13px; ">sudo /sbin/ldconfig</div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div></div><div><br><blockquote type="cite"><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">I configure Mapnik with this command:<br><br>python scons/scons.py configure INPUT_PLUGINS=all OPTIMIZATION=3 SYSTEM_FONTS=/usr/share/fonts/truetype/ttf-dejavu BINDINGS=python<br><br>Things look good when I configure, but when I then run this command:  python scons/scons.py - I get these errors below (please let me know if you need more of the output):<br><br>/usr/local/include/boost/python/detail/make_tuple.hpp:25: error: ‘PyTuple_SET_ITEM’ was not declared in this scope<br>/usr/local/include/boost/python/detail/make_tuple.hpp: In function ‘boost::python::tuple boost::python::make_tuple(const A0&, const A1&, const A2&, const A3&, const A4&) [with A0 = long int, A1 = long int, A2 = long int, A3 = long int, A4 = long int]’:<br><br></div></blockquote><div><br></div>[...snip..]</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">/usr/local/include/boost/python/numeric.hpp:121:   instantiated from ‘void boost::python::numeric::array::resize(const Sequence&) [with Sequence = boost::python::tuple]’<br>/usr/local/include/boost/preprocessor/iteration/detail/local.hpp:37:   instantiated from here<br>/usr/local/include/boost/python/object_core.hpp:330: error: ‘object_base_initializer’ was not declared in this scope<br>scons: *** [bindings/python/mapnik_shield_symbolizer.os] Error 1<br>scons: building terminated because of errors.<br><br></div></span></blockquote><div><br></div><div><br></div><div>So, please go back and re-build the boost python library and this should be fixed. You can try something like:</div><div><br></div><div>cd boost_sources</div><div>./bootstrap.sh</div><div>./bjam --with-python python=2.4 -a  toolset=gcc stage -d2</div><div>cp stage/lib/libboost_python.so* /usr/local/lib/</div><div><br></div><div>** Note, the -d2 will prompt boost to print the actual commands it sends to gcc. Make sure their is no paths to another python version that appear. If there are then I can suggest a more definite way to get bjam/boost to compile against the right python version, by using a special bjam config like described here:</div><div><br></div><div><a href="https://lists.berlios.de/pipermail/mapnik-users/2010-March/003034.html">https://lists.berlios.de/pipermail/mapnik-users/2010-March/003034.html</a></div><div><br></div><div>Dane</div><div><br></div></div></div></body></html>