mapbox / mapnik-omnivore

Node module that returns metadata about spatial files.
45 stars 19 forks source link

npm install issues #150

Closed andrewgoodchild closed 8 years ago

andrewgoodchild commented 8 years ago

Hi

I am having trouble npm installing mapnik-omnivore inside an Ubuntu 14.04 LTS docker container. npm reports node-gyp is having trouble building node-gdal. I can get the latest version of node-gdal to install fine. But the version of node-gdal required by mapnik-omnivore wont build.

Does someone have a dockerfile I can look at that will help me get any dependencies right?

thanks, Andrew

springmeyer commented 8 years ago

npm reports node-gyp is having trouble building node-gdal Probably because you are using node v6? If so downgrade to node v4 until #138 lands (because only node-gdal@0.9.x supports node v6). Another common problem on docker is running as root: Either don't run as root or pass --unsafe-perm. More details at mapbox/node-pre-gyp#165.

andrewgoodchild commented 8 years ago

Thanks @springmeyer - that is very helpful. I should have looked more closely at the version of node.

Do you think #138 is likely to happen soon? Just so I know if I need to be working on a stop gap based on node 4.

springmeyer commented 8 years ago

Hopefully #138 will land in the next couple weeks.

andrewgoodchild commented 8 years ago

:-)