- Ubuntu
- Package management
- here
Install libpng-dev
I will explain how to install libpng-dev. Install libpng-dev using the apt command. Run with administrator privileges using sudo.
sudo apt install -y libpng-dev
What is libpng-dev?
(The following description is unconfirmed as of May 14, 2020)
libpng-dev is one of the libraries for reading, writing and editing PNG images.
It is necessary to read "png.h" in the C language source file.
In Perl, there are modules that use "png.h" to read and write PNG images. An example is Imager::File::PNG, Imager's PNG image read / write module.
In order to install Imager::File::PNG, "png.h" must be installed in the include directory and the corresponding shared library "libpng.so" must be installed in the library directory.
Installing libpng-dev installs the "png.h" header and the corresponding shared library.
On the Web, PNG, GIF, and JPEG images are often uploaded, so install the PNG library.