OpenTreeMap/otm-tiler

Unable to build tiler

Closed this issue · 3 comments

Hi, I have problem with building and running tiler on any environment and any version of node/npm. Usual error is:

otm_kdp@kdp:~/tiler$ node server.js
module.js:341
throw err;
^

Error: Cannot find module '/home/otm_kdp/tiler/node_modules/windshaft/node_modules/grainstore/node_modules/millstone/node_modules/srs/lib/binding/node-v47-linux-x64/srs_settings.js'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object. (/home/otm_kdp/tiler/node_modules/windshaft/node_modules/grainstore/node_modules/millstone/node_modules/srs/lib/srs.js:6:16)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)

I have tried to fight with those outdated dependencies for hours, but I nearly gave up. Numerous things from dependencies don't compile: sqlite3, hiredis, srs and other. Is there any way to run tiler?

My architecture is Ubuntu 14.04.1 LTS x86_64, but really, this doesn't work either on Fedora and Debian.

Thanks

If you fully follow the steps outlined in the Installation Guide you should be able to install the tiler. The installation guide assumes Ubuntu 14.04.1 LTS x86_64, so that should work for you.

Of note, the tiler needs a really old version of Node.js (v0.10) - the main library it uses, Windshaft doesn't support a newer version yet.

If you continue to have difficulties, please feel free to reach out on the mailing list or our Gitter channel.

Hi, thanks for your help, I managed to build the dependencies on node v0.10.36.