You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That led me to try to build node-mapnik with npm, but got:
npm ERR! /bin/sh: 1: mapnik-config: not found
npm ERR! gyp: Call to 'mapnik-config --cflags' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error
and platform specific @mapnik/core-[platform]-[arch]@4.0.5
(tested on Debian GNU/Linux trixie/sid aarch64)
If your platform-arch is not supported, you can also build mapnik from source using scons toolkit which will create requiredmapnik-config. Then build node-mapnik with npm install --build-from-source
If you want to use Debian sid/unstable libmapnik-dev you have a few options (not tested!)
Fix CMake build to output well-formed mapnik-config instead of pkg-config
Create and populate mapnik-config manually with required values.
Make node-mapnik to use pkg-config instead of mapnik-config. This would require adding some missing options to libmapnik.pc to match mapnik-config
Activity
artemp commentedon Feb 5, 2025
@StyXman - thanks for reporting.
Preferred way to install
node-mapnik-The command above will install both
@mapnik/node-mapnik@4.6.7@mapnik/core-[platform]-[arch]@4.0.5(tested on Debian GNU/Linux trixie/sid aarch64)
If your
platform-archis not supported, you can also build mapnik from source usingsconstoolkit which will create requiredmapnik-config. Then build node-mapnik withnpm install --build-from-sourceIf you want to use Debian sid/unstable
libmapnik-devyou have a few options (not tested!)mapnik-configinstead ofpkg-configmapnik-configmanually with required values.node-mapnikto usepkg-configinstead ofmapnik-config. This would require adding some missing options tolibmapnik.pcto matchmapnik-configHTH