GraphicsMagickWand-config command not found

In this troubleshooting guide we learn how to fix GraphicsMagickWand-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

GraphicsMagickWand-config: command not found

or when using sudo you get the following error message

sudo: GraphicsMagickWand-config: command not found

Solutions to GraphicsMagickWand-config: command not found

How To Fix GraphicsMagickWand-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu GraphicsMagickWand-config is provided by libgraphicsmagick1-dev package.

libgraphicsmagick1-dev is:

GraphicsMagick provides libraries in several programming languages to read, write and manipulate image files across a large number of formats, from the widely used jpeg, tiff, bmp or xpm to special-purpose formats such as fits or image formats found on some photo CDs. There are functions for finegrained image processing tasks, as well as conversion routines between the various image formats.

The GraphicsMagick library is a fork of ImageMagick and therefore offers an interface that is similar in features, but intended to be more stable across releases. While compatibility does not go so far that the GraphicsMagick library serves as a drop-in replacement for ImageMagick, conversion can usually be done with little effort.

This package contains the C development headers and library files needed to compile programs using the GraphicsMagick library.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libgraphicsmagick1-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libgraphicsmagick1-dev.

sudo apt -y install libgraphicsmagick1-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install libgraphicsmagick1-dev

Summary

In this tutorial we learn how to fix GraphicsMagickWand-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.