EC2, PHP7.4, php-zip

0

Hi all. Standard EC2 instance.

sudo yum update
sudo amazon-linux-extras install php7.4
sudo yum install php-mbstring php-dom php-pgsql - all good.
sudo yum install php-zip

why does php-zip always want to install "php-common-5.4.16-46.amzn2.0.2.x86_64" ??

any suggestions appreciated.

[]$ sudo yum install php-zip
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-46.amzn2.0.2 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-46.amzn2.0.2.x86_64
--> Running transaction check
---> Package libzip010-compat.x86_64 0:0.10.1-9.amzn2.0.5 will be installed
--> Finished Dependency Resolution

Edited by: Zitan on Mar 15, 2020 2:28 PM

Zitan
질문됨 4년 전1028회 조회
3개 답변
0

sudo amazon-linux-extras install epel
sudo yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum install php74-php-pecl-zip.x86_64
sudo cp /opt/remi/php74/root/usr/lib64/php/modules/zip.so /usr/lib64/php/modules/zip.so
sudo nano /etc/php.d/40-zip.ini
extension=zip.so

Zitan
답변함 4년 전
0

Be great to have repos updated to not have to do the above cheers. Php 7.4

Zitan
답변함 4년 전
0

It seems that the repository has been fixed.
The zip extension was bundled with php-cli-7.4.4-1.amzn2.

$ docker pull amazonlinux2:latest
$ docker run -it --rm amazonlinux:latest /bin/bash -c 'amazon-linux-extras install -y php7.4 && php -i'

...
zip

Zip => enabled
Zip version => 1.15.6
Libzip headers version => 1.3.2
Libzip library version => 1.3.2
...
답변함 4년 전

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

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

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

관련 콘텐츠