imlib2_poly command not found

In this troubleshooting guide we learn how to fix imlib2_poly command not found error message

Introduction

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

imlib2_poly: command not found

or when using sudo you get the following error message

sudo: imlib2_poly: command not found

Solutions to imlib2_poly: command not found

How To Fix imlib2_poly: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu imlib2_poly is provided by libimlib2-dev package.

libimlib2-dev is:

Imlib2 is a library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support, etc.

It does ALL of these operations FAST. Imlib2 also tries to be highly intelligent about doing them, so writing naive programs can be done easily, without sacrificing speed.

This package provides the development files (ie. includes, static library, manual pages) that allow one to build software which uses imlib2.

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

sudo apt-get -y install libimlib2-dev

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

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

sudo apt -y install libimlib2-dev

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

sudo aptitude install libimlib2-dev

Summary

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