Thanks for the reply, Martijn.  libmapnik.dylib is getting written to
/opt/local/lib/, and I had LD_LIBRARY_PATH set correctly, with no
effect.  However, apparently the equivalent for dylibs is
DYLD_LIBRARY_PATH
(http://lists.apple.com/archives/unix-porting/2002/Sep/msg00021.html),
but setting that directly results in a host of problems (system
frameworks start looking for their libs in the macports lib dir and
whining).  So, the solution was to do this:

export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/opt/local/lib

and then all was well.  Well not really: now I'm back to my NoneType
errors (http://lists.berlios.de/pipermail/mapnik-users/2008-March/000707.html)
but that's a separate issue.  Maybe I should just forget about
installing in the macports root...

Thanks for your help!

-Ken-ichi


On Fri, Apr 11, 2008 at 10:53 AM, Martijn van Oosterhout
<[EMAIL PROTECTED]> wrote:
> On Fri, Apr 11, 2008 at 7:49 PM, Ken-ichi <[EMAIL PROTECTED]> wrote:
>  >  ImportError: 
> dlopen(/opt/local/lib/python2.5/site-packages/mapnik/_mapnik.so,
>  >  10): Library not loaded: libmapnik.dylib
>  >   Referenced from: /opt/local/lib/python2.5/site-packages/mapnik/_mapnik.so
>  >   Reason: image not found
>  >
>  >  I'm assuming either libmapnik.dylib wasn't built quite right, or that
>  >  there's a path problem and _mapnik isn't looking for libmanik.dylib in
>  >  the right place, but I'm not sure how to begin debugging either of
>  >  these problems.  Here's my build command:
>
>  Where is libmapnik.dylib? I assume you have is somewhere... If you put
>  it in /opt you probably need to add it to your LD_LIBRARY_PATH or
>  whatever the MacOSX equivalent is.
>
>  Have a nice day,
>  --
>  Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to