Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Mapnik compilation ltdl fail #1376

127 opened this Issue · 6 comments

2 participants

127 commented

Upgrading OS X to Lion causes cleanup of /Library/Python/2.7/site-packages/ and everything dies. Reinstalling works fine.
But after that it fails with «Could not find required header or shared library for ltdl.» Installing libtools from ports doesn't help too.
Default libtool binary ins under /usr/bin/libtool. libtool -V gives «Apple Inc. version cctools-829»

It would be nice to have LTDL param for example.

The part from log

«scons: Configure: Checking for C library ltdl...
.sconf_temp/conftest_3.c <-
|#include "ltdl.h"
|main() {
|return 0;
gcc -o .sconf_temp/conftest_3.o -c -Iinclude -I. -I/Library/Frameworks/UnixImageIO.framework/Versions/E/Headers -I/Library/Frameworks/PROJ.framework/Versions/4/Headers -I/Library/Frameworks/SQLite3.framework/Versions/3/Headers -I/Library/Frameworks/FreeType.framework/unix/include/freetype2 -I/Library/Frameworks/FreeType.framework/unix/include -I/usr/local/include -I/usr/include/libxml2 .sconf_temp/conftest_3.c
.sconf_temp/conftest_3.c:3:18: error: ltdl.h: No such file or directory
scons: Configure: no»

127 commented

Looks like mapnik uses 10.6 sdk
and ltdl.h is inside 10.7 and not /user/share as it was before
and the binary libttol is inside /usr/bin/


Nothing about Mapnik is hardcoded to the 10.6 SDK. If you are using the mapnik-packaging OSX scripts you should not - use homebrew. Also libtdl did change in 10.8, but this is not an issue with Mapnik.


Check this out:
1) I did completely reinstall OS X to latest Mountain Lion (dropped the partition first).
2) Installed latest Xcode/command tools/X11/homebrew and updates
3) Made both brew install --HEAD mapnik and brew install mapnik
4) Gained error equal to compilation from source
4) Checked out troubleshooting page and found nothing about it
May be you already have any tip what can be done in this case?
And it doesn't seem to be fine installing via brew to be such a pain in the ass as compiling from sources step by step (


By the way compiled version from dmg
fails with the same reason on a clean system

@springmeyer springmeyer reopened this

Installing libtool via brew install libtool helps.


Yes, the solution is to install libtool with brew. That also works for me. The binary dmg problem is tracked at mapnik/mapnik-packaging#57. Also I've added an option to point to a custom location in 1e0a4ac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.