Skip to content

Instantly share code, notes, and snippets.

@fpedrera
Created July 1, 2011 22:41
Show Gist options
  • Save fpedrera/1059542 to your computer and use it in GitHub Desktop.
Save fpedrera/1059542 to your computer and use it in GitHub Desktop.
Error installing node-mapnik using npm in OS X 10.6.
MacBook-Pro-de-Felix-Pedrera-Garcia:node-mapnik felix$ npm install -g mapnik/usr/local/bin/mapnik-inspect.js -> /usr/local/lib/node_modules/mapnik/bin/mapnik-inspect.js
/usr/local/bin/mapnik-render.js -> /usr/local/lib/node_modules/mapnik/bin/mapnik-render.js
> mapnik@0.4.0 install /usr/local/lib/node_modules/mapnik
> node-waf -v configure build
Setting srcdir to : /usr/local/lib/node_modules/mapnik
Setting blddir to : /usr/local/lib/node_modules/mapnik/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local/Cellar/node/0.4.8
Checking for program mapnik-config : /Library/Frameworks/Mapnik.framework/Programs/mapnik-config
Sweet, found cairo library, will attempt to compile with cairo support for pdf/svg output
'configure' finished successfully (0.065s)
Waf: Entering directory `/usr/local/lib/node_modules/mapnik/build'
[ 1/16] cxx: src/node_mapnik.cpp -> build/default/src/node_mapnik_1.o
00:34:06 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-fPIC', '-compatibility_version', '1', '-current_version', '1', '-I/Library/Frameworks/Mapnik.framework/Versions/2.0/unix/include/freetype2', '-I/Library/Frameworks/Mapnik.framework/Versions/2.0/unix/include', '-arch', 'i386', '-arch', 'x86_64', '-I/Library/Frameworks/Mapnik.framework/unix/include', '-I/Library/Frameworks/Mapnik.framework/unix/include/cairo', '-I/Library/Frameworks/Mapnik.framework/unix/include/cairomm-1.0', '-I/Library/Frameworks/Mapnik.framework/unix/include/sigc++-2.0', '-I/Library/Frameworks/Mapnik.framework/unix/lib/sigc++-2.0/include/', '-I/Library/Frameworks/Mapnik.framework/unix/include/freetype2', '-I/Library/Frameworks/UnixImageIO.framework/unix/include', '-I/Library/Frameworks/PROJ.framework/unix/include', '-I/usr/include/libxml2', '-DHAVE_CAIRO', '-I/Library/Frameworks/Mapnik.framework/Headers/cairomm-1.0', '-I/Library/Frameworks/Mapnik.framework/Headers/cairo', '-I/Library/Frameworks/Mapnik.framework/Headers/sigc++-2.0', '-I/Library/Frameworks/Mapnik.framework/unix/lib/sigc++-2.0/include', '-I/Library/Frameworks/Mapnik.framework/Headers', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-DEV_MULTIPLICITY=0', '-Idefault', '-I..', '-I/usr/local/Cellar/node/0.4.8/include/node', '../src/node_mapnik.cpp', '-c', '-o', 'default/src/node_mapnik_1.o']
In file included from ../src/node_mapnik.cpp:25:
../src/mapnik_grid_view.hpp:7:37: error: mapnik/grid/grid_view.hpp: No such file or directory
In file included from ../src/node_mapnik.cpp:25:
../src/mapnik_grid_view.hpp:14: error: ‘grid_view’ is not a member of ‘mapnik’
../src/mapnik_grid_view.hpp:14: error: ‘grid_view’ is not a member of ‘mapnik’
../src/mapnik_grid_view.hpp:14: error: template argument 1 is invalid
../src/mapnik_grid_view.hpp:14: error: invalid type in declaration before ‘;’ token
In file included from ../src/node_mapnik.cpp:25:
../src/mapnik_grid_view.hpp:7:37: error: mapnik/grid/grid_view.hpp: No such file or directory
In file included from ../src/node_mapnik.cpp:25:
../src/mapnik_grid_view.hpp:14: error: ‘grid_view’ is not a member of ‘mapnik’
../src/mapnik_grid_view.hpp:14: error: ‘grid_view’ is not a member of ‘mapnik’
../src/mapnik_grid_view.hpp:14: error: template argument 1 is invalid
../src/mapnik_grid_view.hpp:14: error: invalid type in declaration before ‘;’ token
lipo: can't figure out the architecture type of: /var/folders/MO/MOEUmbkEHHOtxQSblJ-3C++++TI/-Tmp-//ccWDs9VI.out
Waf: Leaving directory `/usr/local/lib/node_modules/mapnik/build'
Build failed: -> task failed (err #1):
{task: cxx node_mapnik.cpp -> node_mapnik_1.o}
npm ERR! error installing mapnik@0.4.0 Error: mapnik@0.4.0 install: `node-waf -v configure build`
npm ERR! error installing mapnik@0.4.0 `sh "-c" "node-waf -v configure build"` failed with 1
npm ERR! error installing mapnik@0.4.0 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing mapnik@0.4.0 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing mapnik@0.4.0 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! mapnik@0.4.0 install: `node-waf -v configure build`
npm ERR! `sh "-c" "node-waf -v configure build"` failed with 1
npm ERR!
npm ERR! Failed at the mapnik@0.4.0 install script.
npm ERR! This is most likely a problem with the mapnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf -v configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls mapnik
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.7.4
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "mapnik"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/felix/Proyectos/GitHub/node-mapnik/npm-debug.log
npm not ok
@springmeyer
Copy link

try installing node-mapnik 0.3.0 for now (as node-mapnik 0.4.0 requires very recent mapnik trunk revision)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment