Tiler npm install error

30 views
Skip to first unread message

treema...@gmail.com

unread,
Jul 12, 2017, 6:25:51 PM7/12/17
to opentreemap-user
Hi all, I tried to install tiler in my ubuntu server with 1G memory, but i got this error on the npm install step "virtual memory exhausted: Cannot allocate memory"
Please which configuration is needed to install the application with sucess, any help?
I followed this steps to install it :
# tiler
apt-get install -yq libsigc++-2.0-dev libmapnik-dev mapnik-utils
cd /usr/local/tiler
# Use older version of nodejs for building the tiler, and leave it installed for running the tiler
NODE_VERSION_FOR_TILER=0.10.32
sudo nave usemain $NODE_VERSION_FOR_TILER
sudo npm install

error log:

> map...@0.7.28 install /usr/local/tiler/node_modules/windshaft/node_modules/mapnik
> node-gyp rebuild

make: Entering directory `/usr/local/tiler/node_modules/windshaft/node_modules/mapnik/build'
  CXX(target) Release/obj.target/_mapnik/src/node_mapnik.o
  CXX(target) Release/obj.target/_mapnik/src/mapnik_map.o
  CXX(target) Release/obj.target/_mapnik/src/mapnik_color.o
  CXX(target) Release/obj.target/_mapnik/src/mapnik_geometry.o
virtual memory exhausted: Cannot allocate memory
make: *** [Release/obj.target/_mapnik/src/mapnik_geometry.o] Error 1
make: Leaving directory `/usr/local/tiler/node_modules/windshaft/node_modules/mapnik/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
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.13.0-116-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/tiler/node_modules/windshaft/node_modules/mapnik
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! map...@0.7.28 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the map...@0.7.28 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-gyp rebuild
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.13.0-116-generic
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /usr/local/tiler
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Justin Walgran

unread,
Jul 12, 2017, 10:42:24 PM7/12/17
to opentree...@googlegroups.com
Looks you will need more memory to successfully compile the native mapnik extension. If you cannot add more RAM to the server, setting up a swap file should let you use your disk for virtual memory.

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages