kosmtik / kosmtik

Make maps with OpenStreetMap and Mapnik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Ubuntu 20.04

datendelphin opened this issue · comments

I just tried to run sudo npm -g install kosmtik on ubuntu 20.04 and it failed. I am not familiar with node or javascript to see what the problem is, but I guess there will be some work to get it on 20.04. It wtill seems to work on 18.04.

I can attach the console output if desired.

Me too same problem but seems that somethik fail with dependecy:

> mapnik@3.7.2 install /home/renderaccount/kos/node_modules/kosmtik/node_modules/mapnik
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v64-linux-x64-Release.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.7.2 and node@10.19.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v64-linux-x64-Release.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.7.2 and node@10.19.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 

Someone report a problem here:
mapbox/node-pre-gyp#477

But how well done here is reported that is required mapnik version major then 4.0 with node>v10.0
mapnik/node-mapnik#895

https://github.com/kosmtik/kosmtik/blob/master/package.json

    "leaflet-hash": "^0.2.1",
    "mapnik": "^4.2.1",         <----- Is major then 4.0
    "mapnik-pool": "^0.1.3",

My Ubutu2020

renderaccount@osman:~/kos$ npm view kosmtik

kosmtik@0.0.17 | WTFPL | deps: 12 | versions: 16
Make maps with OpenStreetMap and Mapnik
https://github.com/kosmtik/kosmtik#readme

keywords: openstreetmap, map, design

bin: kosmtik

dist
.tarball: https://registry.npmjs.org/kosmtik/-/kosmtik-0.0.17.tgz
.shasum: 05246e7e191180b6f1143111d78660fdc4e6d391
.unpackedSize: 3.6 MB

dependencies:
carto: ^0.18.0              leaflet-formbuilder: ^0.2.0 mapnik-pool: ^0.1.3         npm: ^4.0.5                 
js-yaml: ^3.4.2             leaflet-hash: ^0.2.1        mapnik: 3.7.2               request: ^2.81.0            
json-localizer: 0.0.3       leaflet: ^1.0.2             nomnom: ^1.8.1              semver: ^5.0.3              

maintainers:
- nebulon42 <nebulon42@yandex.com>
- ybon <yb@enix.org>

dist-tags:
latest: 0.0.17  

published over a year ago by nebulon42 <nebulon42@mailbox.org> <--------

I think this package must be upgrade over npm for all.
@nebulon42 seems to be maintainer

Can you try to install it from the repo:

git clone https://github.com/kosmtik/kosmtik.git
cd kosmtik
sudo npm install -g

It seems to work for me (on Debian Bullseye).

Can you try to install it from the repo:

git clone https://github.com/kosmtik/kosmtik.git
cd kosmtik
sudo npm install -g

It seems to work for me (on Debian Bullseye).

Yes, work from Repo.
Is always better update package

It still can't build mapnik: WARN lifecycle mapnik@4.5.2~install: cannot run in wd mapnik@4.5.2 node-pre-gyp install --fallback-to-build (wd=/home/kosmtik/kosmtik/node_modules/mapnik)

which probably is the reason for the following error:

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/home/kosmtik/kosmtik/node_modules/mapnik/lib/binding/mapnik_settings.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/kosmtik/kosmtik/node_modules/mapnik/lib/mapnik.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)