To compiled Mapnik with ICU4 : ./scons/scons.py configure ICU_INCLUDES=/usr/local/include ICU_LIBS=/usr/local/lib ./scons/scons.py install
At runtime you might need to : 1) export LD_LIBRARY_PATH=/usr/local/lib or 2) create mapnik.conf in /etc/ld.conf.d/ containing /usr/local/lib and run : sudo ldconfig Regards, Artem 2010/1/11 Dom Lehr <[email protected]>: > Hi Artem! > > I "guess" I installed ICU4_2... I downloaded the source, ran > "runConfigureICU Linux", then "gmake" and finally "gmake install". So this > is what I got in my /usr/local/lib: > > dbsosm:/usr/local/lib # ls -l > total 52918 > drwxr-xr-x 3 root root 160 Jan 8 11:11 icu > -rw-r--r-- 1 root root 161780 Jan 8 11:00 libboost_date_time.a > lrwxrwxrwx 1 root root 28 Jan 8 10:58 libboost_date_time.so -> > libboost_date_time.so.1.42.0 > -rwxr-xr-x 1 root root 103797 Jan 8 10:58 libboost_date_time.so.1.42.0 > -rw-r--r-- 1 root root 202310 Jan 8 11:00 libboost_filesystem.a > lrwxrwxrwx 1 root root 29 Jan 8 10:58 libboost_filesystem.so -> > libboost_filesystem.so.1.42.0 > -rwxr-xr-x 1 root root 119793 Jan 8 10:58 libboost_filesystem.so.1.42.0 > -rw-r--r-- 1 root root 865370 Jan 8 11:01 libboost_graph.a > lrwxrwxrwx 1 root root 24 Jan 8 10:59 libboost_graph.so -> > libboost_graph.so.1.42.0 > -rwxr-xr-x 1 root root 520857 Jan 8 10:59 libboost_graph.so.1.42.0 > -rw-r--r-- 1 root root 252500 Jan 8 11:01 libboost_iostreams.a > lrwxrwxrwx 1 root root 28 Jan 8 10:59 libboost_iostreams.so -> > libboost_iostreams.so.1.42.0 > -rwxr-xr-x 1 root root 139886 Jan 8 10:59 libboost_iostreams.so.1.42.0 > -rw-r--r-- 1 root root 387136 Jan 8 11:03 libboost_math_c99.a > lrwxrwxrwx 1 root root 27 Jan 8 10:54 libboost_math_c99.so -> > libboost_math_c99.so.1.42.0 > -rwxr-xr-x 1 root root 202408 Jan 8 10:54 libboost_math_c99.so.1.42.0 > -rw-r--r-- 1 root root 392946 Jan 8 11:03 libboost_math_c99f.a > lrwxrwxrwx 1 root root 28 Jan 8 10:54 libboost_math_c99f.so -> > libboost_math_c99f.so.1.42.0 > -rwxr-xr-x 1 root root 198896 Jan 8 10:54 libboost_math_c99f.so.1.42.0 > -rw-r--r-- 1 root root 387936 Jan 8 11:03 libboost_math_c99l.a > lrwxrwxrwx 1 root root 28 Jan 8 10:54 libboost_math_c99l.so -> > libboost_math_c99l.so.1.42.0 > -rwxr-xr-x 1 root root 195524 Jan 8 10:54 libboost_math_c99l.so.1.42.0 > -rw-r--r-- 1 root root 2253832 Jan 8 11:02 libboost_math_tr1.a > lrwxrwxrwx 1 root root 27 Jan 8 10:53 libboost_math_tr1.so -> > libboost_math_tr1.so.1.42.0 > -rwxr-xr-x 1 root root 379269 Jan 8 10:53 libboost_math_tr1.so.1.42.0 > -rw-r--r-- 1 root root 2316806 Jan 8 11:02 libboost_math_tr1f.a > lrwxrwxrwx 1 root root 28 Jan 8 10:53 libboost_math_tr1f.so -> > libboost_math_tr1f.so.1.42.0 > -rwxr-xr-x 1 root root 399838 Jan 8 10:53 libboost_math_tr1f.so.1.42.0 > -rw-r--r-- 1 root root 2251708 Jan 8 11:02 libboost_math_tr1l.a > lrwxrwxrwx 1 root root 28 Jan 8 10:54 libboost_math_tr1l.so -> > libboost_math_tr1l.so.1.42.0 > -rwxr-xr-x 1 root root 375525 Jan 8 10:54 libboost_math_tr1l.so.1.42.0 > -rw-r--r-- 1 root root 133276 Jan 8 11:05 libboost_prg_exec_monitor.a > lrwxrwxrwx 1 root root 35 Jan 8 10:56 libboost_prg_exec_monitor.so -> > libboost_prg_exec_monitor.so.1.42.0-rwxr-xr-x 1 root root 88930 Jan 8 > 10:56 libboost_prg_exec_monitor.so.1.42.0 > -rw-r--r-- 1 root root 985992 Jan 8 11:03 libboost_program_options.a > lrwxrwxrwx 1 root root 34 Jan 8 10:55 libboost_program_options.so -> > libboost_program_options.so.1.42.0 > -rwxr-xr-x 1 root root 470951 Jan 8 10:55 > libboost_program_options.so.1.42.0 > -rw-r--r-- 1 root root 831110 Jan 8 11:04 libboost_python.a > lrwxrwxrwx 1 root root 25 Jan 8 10:55 libboost_python.so -> > libboost_python.so.1.42.0 > -rwxr-xr-x 1 root root 497041 Jan 8 10:55 libboost_python.so.1.42.0 > -rw-r--r-- 1 root root 2550956 Jan 8 11:01 libboost_regex.a > lrwxrwxrwx 1 root root 24 Jan 8 10:58 libboost_regex.so -> > libboost_regex.so.1.42.0 > -rwxr-xr-x 1 root root 1140439 Jan 8 10:58 libboost_regex.so.1.42.0 > -rw-r--r-- 1 root root 1338848 Jan 8 11:04 libboost_serialization.a > lrwxrwxrwx 1 root root 32 Jan 8 10:56 libboost_serialization.so -> > libboost_serialization.so.1.42.0 > -rwxr-xr-x 1 root root 686156 Jan 8 10:56 > libboost_serialization.so.1.42.0 > -rw-r--r-- 1 root root 169112 Jan 8 11:05 libboost_signals.a > lrwxrwxrwx 1 root root 26 Jan 8 10:56 libboost_signals.so -> > libboost_signals.so.1.42.0 > -rwxr-xr-x 1 root root 104775 Jan 8 10:56 libboost_signals.so.1.42.0 > -rw-r--r-- 1 root root 28524 Jan 8 11:00 libboost_system.a > lrwxrwxrwx 1 root root 25 Jan 8 10:58 libboost_system.so -> > libboost_system.so.1.42.0 > -rwxr-xr-x 1 root root 21323 Jan 8 10:58 libboost_system.so.1.42.0 > -rw-r--r-- 1 root root 2095778 Jan 8 10:59 libboost_test_exec_monitor.a > -rw-r--r-- 1 root root 197012 Jan 8 11:05 libboost_thread.a > lrwxrwxrwx 1 root root 25 Jan 8 10:57 libboost_thread.so -> > libboost_thread.so.1.42.0 > -rwxr-xr-x 1 root root 131951 Jan 8 10:57 libboost_thread.so.1.42.0 > -rw-r--r-- 1 root root 2323058 Jan 8 11:05 libboost_unit_test_framework.a > lrwxrwxrwx 1 root root 38 Jan 8 10:57 libboost_unit_test_framework.so > -> libboost_unit_test_framework.so.1.42.0 > -rwxr-xr-x 1 root root 1150289 Jan 8 10:57 > libboost_unit_test_framework.so.1.42.0 > -rw-r--r-- 1 root root 3414734 Jan 8 11:06 libboost_wave.a > lrwxrwxrwx 1 root root 23 Jan 8 10:58 libboost_wave.so -> > libboost_wave.so.1.42.0 > -rwxr-xr-x 1 root root 1783632 Jan 8 10:58 libboost_wave.so.1.42.0 > -rw-r--r-- 1 root root 886770 Jan 8 11:04 libboost_wserialization.a > lrwxrwxrwx 1 root root 33 Jan 8 10:56 libboost_wserialization.so -> > libboost_wserialization.so.1.42.0 > -rwxr-xr-x 1 root root 492824 Jan 8 10:56 > libboost_wserialization.so.1.42.0 > lrwxrwxrwx 1 root root 18 Jan 8 11:11 libicudata.so -> > libicudata.so.42.1 > lrwxrwxrwx 1 root root 18 Jan 8 11:11 libicudata.so.42 -> > libicudata.so.42.1 > -rw-r--r-- 1 root root 16010036 Jan 8 11:11 libicudata.so.42.1 > lrwxrwxrwx 1 root root 18 Jan 8 11:11 libicui18n.so -> > libicui18n.so.42.1 > lrwxrwxrwx 1 root root 18 Jan 8 11:11 libicui18n.so.42 -> > libicui18n.so.42.1 > -rwxr-xr-x 1 root root 2209864 Jan 8 11:11 libicui18n.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicuio.so -> libicuio.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicuio.so.42 -> > libicuio.so.42.1 > -rwxr-xr-x 1 root root 62206 Jan 8 11:11 libicuio.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicule.so -> libicule.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicule.so.42 -> > libicule.so.42.1 > -rwxr-xr-x 1 root root 298042 Jan 8 11:11 libicule.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libiculx.so -> libiculx.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libiculx.so.42 -> > libiculx.so.42.1 > -rwxr-xr-x 1 root root 70910 Jan 8 11:11 libiculx.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicutu.so -> libicutu.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicutu.so.42 -> > libicutu.so.42.1 > -rwxr-xr-x 1 root root 159020 Jan 8 11:11 libicutu.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicuuc.so -> libicuuc.so.42.1 > lrwxrwxrwx 1 root root 16 Jan 8 11:11 libicuuc.so.42 -> > libicuuc.so.42.1 > -rwxr-xr-x 1 root root 1608359 Jan 8 11:11 libicuuc.so.42.1 > > Since ICU is obviously not located at /usr/local/, do I have to specifically > put it as a command line option when I run "python scons/scons.py"? > > > This is what I get for "ldd /usr/local/lib64/libmapnik.so.0.8": > > > ldd /usr/local/lib64/libmapnik.so.0.8 > libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002b5316421000) > libltdl.so.3 => /usr/lib64/libltdl.so.3 (0x00002b531659c000) > libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002b53166a3000) > libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002b53167e0000) > libz.so.1 => /lib64/libz.so.1 (0x00002b531693a000) > libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002b5316a4e000) > libproj.so.0 => /usr/lib64/libproj.so.0 (0x00002b5316b70000) > libicuuc.so.34 => /usr/lib64/libicuuc.so.34 (0x00002b5316cb2000) > libboost_filesystem.so.1.42.0 => > /usr/local/lib/libboost_filesystem.so.1.42.0 (0x00002b5316ed4000) > libboost_regex.so.1.42.0 => /usr/local/lib/libboost_regex.so.1.42.0 > (0x00002b5316fea000) > libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00002b53171d3000) > libboost_thread.so.1.42.0 => > /usr/local/lib/libboost_thread.so.1.42.0 (0x00002b5317417000) > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b531752f000) > libm.so.6 => /lib64/libm.so.6 (0x00002b531772d000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b5317882000) > libc.so.6 => /lib64/libc.so.6 (0x00002b5317990000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002b5317bd0000) > libicudata.so.34 => /usr/lib64/libicudata.so.34 (0x00002b5317cd4000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b5318643000) > libboost_system.so.1.42.0 => > /usr/local/lib/libboost_system.so.1.42.0 (0x00002b531875c000) > librt.so.1 => /lib64/librt.so.1 (0x00002b531885f000) > /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) > > > Thanks for your help! > > Dom > > On Mon, Jan 11, 2010 at 2:56 PM, Artem Pavlenko <[email protected]> wrote: >> >> Hi Dom, >> >> It can be you're loading wrong (old) version of icu at runtime. Did >> you install icu 4.x into /usr/local ? >> >> Could you post result of : >> >> ldd /usr/local/lib64/libmapnik.so.0.8 >> >> >> Regards, >> Artem >> >> 2010/1/11 Dom Lehr <[email protected]>: >> > Hey guys, >> > >> > since my installation finally went thru, I was about to test it. >> > Unfortunately, I get "Boost undefined symbols": >> > >> > dbsosm:/usr/local/bin # python >> > Python 2.4.2 (#1, Dec 2 2008, 00:09:07) >> > [GCC 4.1.2 20070115 (SUSE Linux)] on linux2 >> > Type "help", "copyright", "credits" or "license" for more information. >> >>>> import mapnik >> > Traceback (most recent call last): >> > File "<stdin>", line 1, in ? >> > File "/usr/lib64/python2.4/site-packages/mapnik/__init__.py", line 53, >> > in >> > ? >> > from _mapnik import * >> > ImportError: /usr/local/lib64/libmapnik.so.0.8: undefined symbol: >> > _ZNK7icu_4_213UnicodeString9doCompareEiiPKtii >> > >> > >> > >> > I was lookin at the "Installation Troubleshooting" Page >> > (http://trac.mapnik.org/wiki/InstallationTroubleshooting) and found a >> > solution for "Boost undefined symbols", but... I am using boost version >> > 1.42, which I compiled from source. According to this "solution" it >> > should >> > be fixed by now. >> > >> > I am running Suse Linux Enterprise Server 10, SP 2, 64 bit. Mapnik 0.7.0 >> > Release. >> > >> > I appreciate your help! >> > >> > Dom >> > >> > > _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

