1 Answer
- Newest
- Most votes
- Most comments
0
Hey! Thank you for reaching out with your question.
On a running CentOS system with PHP 7.4 and libpng1.5 already configured, you can use the following steps to upgrade to libpng1.6-
1. Install wget to your instance for internet package download capability by running - $ sudo yum install wget
2. Ensure you have gcc installed to have an available path compiler for packages - $ yum install gcc
3. Install libpng1.6 to your instance with the following steps
$ wget https://download.sourceforge.net/libpng/libpng-1.6.37.tar.gz
$ tar xvfz libpng-1.6.37.tar.gz
$ cd libpng-1.6.37
$ ./configure --prefix=/usr/local/libpng/1_6_37
NOTICE- If you receive a "lib not installed" prompt after this step run the following command before continuing with later steps - $ sudo yum install zlib-devel
$ make
$ make install
And there you go, now libpng 1.6 should be up and running on your system
answered 2 years ago
Going this route, I am assuming I will need to rebuild PHP? Is there an amazon php package for PHP 7.4 that includes the latest (1.7.37) version of libpng?
Relevant content
- Accepted Answerasked 4 months ago
- Accepted Answerasked 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
Hey! You should try : $ wget https://downloads.sourceforge.net/project/libpng/libpng16/older-releases/1.6.37/libpng-1.6.37.tar.gz -O libpng.tar.gz $ tar -xvf libpng.tar.gz $ cd libpng-1.6.37 $ sudo bash configure --prefix=/usr/local/libpng $ sudo make install