afterimage-config command not found

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

Introduction

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

afterimage-config: command not found

or when using sudo you get the following error message

sudo: afterimage-config: command not found

Solutions to afterimage-config: command not found

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

In Ubuntu afterimage-config is provided by libafterimage-dev package.

libafterimage-dev is:

libAfterImage is the imaging library implemented for AfterStep X Window Manager. It has been generalized to be suitable for any application in need of robust graphics engine.

It provides facilities for loading images from files of different formats, compressed in memory storage of images, scaling, tinting/shading, flipping and superimposition of arbitrary number of images over each other. In addition it allows for linear gradients drawing, and antialiased/smoothed text drawing using both FreeType library and X Window fonts.

This package contains the header files and static library needed to compile applications that use libAfterImage.

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

sudo apt-get -y install libafterimage-dev

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

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

sudo apt -y install libafterimage-dev

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

sudo aptitude install libafterimage-dev

Summary

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