Giter VIP home page Giter VIP logo

Comments (5)

Korolev-Oleg avatar Korolev-Oleg commented on June 8, 2024

It should be noted that tileserver-gl-light operates without errors.

from tileserver-gl.

scara avatar scara commented on June 8, 2024

Hi @Korolev-Oleg,

It should be noted that tileserver-gl-light operates without errors.

you should IMHO go with the docker option for tileserver-gl since maplibre-gl-native requires some specific libs with specific versions - you could create a symlink against newer versions.
BTW you can try with sudo apt-get update && sudo apt-get install libicu66.

HTH,
Matteo

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

It is not possible right now to run on 22.04 without providing your own maplibre-native binary files. The maplibre-native binaries are built on Ubuntu 20.04, so they have hard dependencies on the lib versions it was built with.

We found in #643 that Ubuntu 22.04 uses libicu70 and has no libicu66, so maplibre-native fails. You can see this in the ct test with this error it is getting

Error: libicui18n.so.66: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1249:18)
    at Module.load (node:internal/modules/cjs/loader:[10](https://github.com/maptiler/tileserver-gl/actions/runs/3804864684/jobs/6472538658#step:10:11)43:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1067:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/runner/work/tileserver-gl/tileserver-gl/node_modules/@maplibre/maplibre-gl-native/platform/node/index.js:5:12)
    at Module._compile (node:internal/modules/cjs/loader:[11](https://github.com/maptiler/tileserver-gl/actions/runs/3804864684/jobs/6472538658#step:10:12)65:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:[12](https://github.com/maptiler/tileserver-gl/actions/runs/3804864684/jobs/6472538658#step:10:13)19:10)
    at Module.load (node:internal/modules/cjs/loader:1043:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:[16](https://github.com/maptiler/tileserver-gl/actions/runs/3804864684/jobs/6472538658#step:10:17)9:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:[19](https://github.com/maptiler/tileserver-gl/actions/runs/3804864684/jobs/6472538658#step:10:20)3:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:[24](https://github.com/maptiler/tileserver-gl/actions/runs/3804864684/jobs/6472538658#step:10:25))
    at async file:///home/runner/work/tileserver-gl/tileserver-gl/src/server.js:33:3
Error: Process completed with exit code 1.

We've had some discussion on the maplibre-native slack about how to get the binary to be more portable, but right now it has dependecies
https://osmus.slack.com/archives/C02B2CBSNBU/p1670899965718649

Right now as @scara said. If you want to keep the OS you are on, docker is the best option. You could also switch to 20.04 and it should work without docker.

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

See this for how I got 22.04 to work in testing
#643 (comment)

If you did try that you might want to checkout maplibre-native at the last node release version
https://github.com/maplibre/maplibre-native/releases/tag/node-v5.2.0
since there has been lots of changes for metal support that i'm not sure are ready for the node binary build

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

Just an FYI, as of TileServer-GL v4.8.0 and Maplibre-Native v5.3.0 , the default linux node binary is now built on Ubuntu 22.04. This should mean TileServer-GL should now work on 22.04.3

from tileserver-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.