Skip to content

Instantly share code, notes, and snippets.

@mgax
Created June 28, 2011 12:46
Show Gist options
  • Save mgax/1051061 to your computer and use it in GitHub Desktop.
Save mgax/1051061 to your computer and use it in GitHub Desktop.
homebrew mapnik installation failure
alexm@tufa:~$ brew install -v mapnik
==> Downloading http://download.berlios.de/mapnik/mapnik-0.7.1.tar.gz
File already downloaded in /Users/alexm/Library/Caches/Homebrew
/usr/bin/tar xf /Users/alexm/Library/Caches/Homebrew/mapnik-0.7.1.tar.gz
==> scons PREFIX=/usr/local/Cellar/mapnik/0.7.1 ICU_INCLUDES=/usr/local/Cellar/icu4c/4.4.1/include ICU_LIBS=/usr/local/Cellar/icu4c/4.4.1/lib install
scons PREFIX=/usr/local/Cellar/mapnik/0.7.1 ICU_INCLUDES=/usr/local/Cellar/icu4c/4.4.1/include ICU_LIBS=/usr/local/Cellar/icu4c/4.4.1/lib install
scons: Reading SConscript files ...
Welcome to Mapnik...
Configuring build environment...
Configuring on Darwin in *release mode*...
Checking for freetype-config... yes
Checking for xml2-config... yes
Checking for pkg-config... yes
Checking for cairomm-1.0... yes
Sorting lib and inc compiler paths by priority... internal,other,frameworks,user,system(cached) yes
Checking for C library m... yes
Checking for C library ltdl... yes
Checking for C library png... yes
Checking for C library tiff... yes
Checking for C library z... yes
Checking for C library jpeg... yes
Checking for C library proj... yes
Checking for C++ library icuuc... yes
Searching for boost libs and headers... (cached)
*libs found: /usr/local/lib
*headers found: /usr/local/include
*lib naming extension found: -mt
dyld: Library not loaded: libicuuc.44.dylib
Referenced from: /private/tmp/homebrew-mapnik-0.7.1-xbpr/mapnik-0.7.1/.sconf_temp/conftest_12
Reason: image not found
sh: line 1: 42851 Trace/BPT trap .sconf_temp/conftest_12 > ".sconf_temp/conftest_12.out"
dyld: Library not loaded: libicuuc.44.dylib
Referenced from: /private/tmp/homebrew-mapnik-0.7.1-xbpr/mapnik-0.7.1/.sconf_temp/conftest_13
Reason: image not found
sh: line 1: 42863 Trace/BPT trap .sconf_temp/conftest_13 > ".sconf_temp/conftest_13.out"
Checking for Boost version >= 1.34... no
Boost version 1.34 or greater is requred
Checking for C++ library boost_system-mt... yes
Checking for C++ library boost_filesystem-mt... yes
Checking for C++ library boost_regex-mt... yes
Checking for C++ library boost_iostreams-mt... yes
Checking for C++ library boost_program_options-mt... yes
Checking for C++ library boost_thread-mt... yes
Checking for requested plugins dependencies...
Checking for pg_config... yes
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pkg-config... yes
Checking for pycairo... no
Exiting... the following required dependencies were not found:
- boost version >=1.34 (more info see: http://trac.mapnik.org/wiki/MapnikInstallation & http://www.boost.org)
See the 'config.log' for details on possible problems.
Also, these OPTIONAL dependencies were not found:
- pycairo (Python bindings to Cairo library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)
Set custom paths to these libraries and header files on the command-line or in a file called 'config.py'
ie. $ python scons/scons.py BOOST_INCLUDES=/usr/local/include/ BOOST_LIBS=/usr/local/lib
Once all required dependencies are found a local 'config.py' will be saved and then install:
$ sudo python scons/scons.py install
To view available path variables:
$ python scons/scons.py --help or -h
To view overall SCons help options:
$ python scons/scons.py --help-options or -H
More info: http://trac.mapnik.org/wiki/MapnikInstallation
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/mapnik.rb#L26
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: bf2aa0da19ceaa67002a8c454f9b0900523e1781
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.7
Kernel Architecture: i386
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.0
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/local/Cellar/icu4c/4.4.1/include -I/usr/X11/include
LDFLAGS: -L/usr/local/Cellar/icu4c/4.4.1/lib -L/usr/X11/lib
MAKEFLAGS: -j2
PKG_CONFIG_PATH: /usr/local/Cellar/icu4c/4.4.1/lib/pkgconfig
Error: Failed executing: scons PREFIX=/usr/local/Cellar/mapnik/0.7.1 ICU_INCLUDES=/usr/local/Cellar/icu4c/4.4.1/include ICU_LIBS=/usr/local/Cellar/icu4c/4.4.1/lib install
Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/3150
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment