Upgrade libpng to 1.6

0

Good afternoon,

I am have an AWS EC2 Instance running centos and PHP 7.4.28. The libpng version included is 1.5.13. There are several bugs in this version, and would like to upgrade to the latest release of 1.6.37. However, yum update cannot find any packages to update.

Is there any plan to make 1.6.37 available?

Thanks, Ben

질문됨 2년 전201회 조회
1개 답변
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
답변함 2년 전
  • 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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠