Hey Mike,

On May 5, 2009, at 12:43 PM, Michal Migurski wrote:

> Hm, everything worked until:
>
>       g++ -o bindings/python/_mapnik.so ...
>       ld: library not found for -lboost_python-mt
>       collect2: ld returned 1 exit status
>       scons: *** [bindings/python/_mapnik.so] Error 1
>       scons: building terminated because of errors.
>

Looks familiar :)

Can you try:
$ sudo port uninstall boost
$ sudo port clean boost
$ sudo port install boost +python26 +icu

My guess would be that boost somehow got installed previously without  
the '+python26' flag (which denotes a boost 'variant'). As the default  
'sudo port install boost' will not compile boost-python and any later  
call to install boost (even with the variant flag) will not prompt an  
upgrade, a full uninstall and clean is usually needed.

Unbelievable, but true: Macports lacks the ability to specify the  
requirement of a 'variant'  in a Portfile, so this makes any complex  
apps that require libs with extra stuff SOL, unless the right steps  
are followed.

Anyway, let me know if that helps. Surely possible something else is  
messing things up, but I'd check to see if libboost_python-mt.dylib  
exists in /opt/local/lib and if it does not then follow the above steps.

- dane



>
> On May 1, 2009, at 2:27 PM, Dane Springmeyer wrote:
>
>> Hey all,
>>
>> Mapnik 0.6.0 (and Portfile) was just accepted to Macports this
>> afternoon (http://trac.macports.org/changeset/50499).
>>
>> So, as soon as all the mirrors sync Macports users will be able to  
>> do:
>>
>> $ sudo port selfupdate
>> $ sudo port install boost +pyhon26+icu
>> $ sudo python_select python26
>> $ sudo port install py26-mapnik
>>
>> Cheers,
>> Dane
>>
>> * Note: using Mapnik installed via Macports requires that you switch
>> to using Python 2.6 installed from Macports
>> _______________________________________________
>> Mapnik-users mailing list
>> [email protected]
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>>
>
> ----------------------------------------------------------------
> michal migurski- [email protected]
>                  415.558.1610
>
>
>
> ----------------------------------------------------------------
> michal migurski- [email protected]
>                  415.558.1610
>
>
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to