Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Alessandro-Barbieri/ce9039621a099ce6c666 to your computer and use it in GitHub Desktop.
Save Alessandro-Barbieri/ce9039621a099ce6c666 to your computer and use it in GitHub Desktop.
mapbox-studio gentoo
npm install --build-from-source 0s
> mapbox-studio@0.2.7 preinstall /usr/local/src/mapbox-studio
> node scripts/run.js scripts/vendor-node.sh
Running /usr/local/src/mapbox-studio/scripts/vendor-node.sh
NOTICE: NODE_VERSION environment variable not defined, defaulting to 0.10.33
NOTICE: TARGET_ARCH environment variable not defined, defaulting to x64
Requested node version: 0.10.33
Requested node platform+arch: linux-x64
Requested bin only: true
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
'100 2341 100 2341 0 0 3501 0 --:--:-- --:--:-- --:--:-- 3875$'
''
npm WARN package.json dirty@0.9.9 No repository field.
npm WARN package.json mapbox-machine-styles@2.3.0 No repository field.
npm WARN package.json mapbox-studio-default-style@1.0.0 No repository field.
> mapnik@3.2.0 install /usr/local/src/mapbox-studio/node_modules/mapnik
> node-pre-gyp install --fallback-to-build
/bin/sh: mapnik-config: command not found
gyp: Call to 'mapnik-config --cflags' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.16.0-rtai
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/src/mapbox-studio/node_modules/mapnik/lib/binding/node-v11-linux-ia32/mapnik.node" "--module_name=mapnik" "--module_path=/usr/local/src/mapbox-studio/node_modules/mapnik/lib/binding/node-v11-linux-ia32"
gyp ERR! cwd /usr/local/src/mapbox-studio/node_modules/mapnik
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/src/mapbox-studio/node_modules/mapnik/lib/binding/node-v11-linux-ia32/mapnik.node --module_name=mapnik --module_path=/usr/local/src/mapbox-studio/node_modules/mapnik/lib/binding/node-v11-linux-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/src/mapbox-studio/node_modules/mapnik/node_modules/node-pre-gyp/lib/util/compile.js:73:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:756:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:823:5)
node-pre-gyp ERR! System Linux 3.16.0-rtai
node-pre-gyp ERR! command "node" "/usr/local/src/mapbox-studio/node_modules/mapnik/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/src/mapbox-studio/node_modules/mapnik
node-pre-gyp ERR! node -v v0.10.30
node-pre-gyp ERR! node-pre-gyp -v v0.6.4
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/src/mapbox-studio/node_modules/mapnik/lib/binding/node-v11-linux-ia32/mapnik.node --module_name=mapnik --module_path=/usr/local/src/mapbox-studio/node_modules/mapnik/lib/binding/node-v11-linux-ia32' (1)
npm ERR! mapnik@3.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mapnik@3.2.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-pre-gyp install --fallback-to-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! System Linux 3.16.0-rtai
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--build-from-source"
npm ERR! cwd /usr/local/src/mapbox-studio
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/src/mapbox-studio/npm-debug.log
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment