Simple OpenGL Image Library (SOIL) is a tiny C library for loading, writing and processing textures in OpenGL code. Alternative to this could be OpenGL Image (GLI) library.
$ sudo apt install libsoil-dev
To use its API, include the header files
SOIL/SOIL.h in your code.
To link your compiled code with its library use
Tried with: SOIL 1.07 and Ubuntu 14.04