Posts: 2
Joined: Mon Mar 02, 2015 10:40 am

Node: Issue installing node-imagemagick-native

Thu Jan 16, 2020 6:40 pm


I have ImageMagick installed via:

Code: Select all

sudo apt-get install imagemagick
When I attempt to install the node-imagemagick-native package:

Code: Select all

npm install imagemagick-native
I get the following error:

Code: Select all

 npm install imagemagick-native

> [email protected] install /home/pi/server/node_modules/imagemagick-native
> node-gyp rebuild

/bin/sh: 1: Magick++-config: not found
gyp: Call to 'Magick++-config --ldflags --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
According to the installation notes:
Make sure you can find Magick++-config in your PATH. Packages on some newer distributions, such as Ubuntu 16.04, might be missing a link into /usr/bin. If that is the case, do this.

Code: Select all

sudo ln -s `ls /usr/lib/\`uname -p\`-linux-gnu/ImageMagick-*/bin-Q16/Magick++-config | head -n 1` /usr/local/bin/
but this fails when I run the command. I'm not savvy with raspbian (or any flavor of unix) so I'm not sure how to troubleshoot/resolve this issue.



Return to “Other programming languages”