[실패]php-pecl-zip extension install fail

회사 서버 중 aws centos 7.x amazon linux 2를 사용중인게 있다.


금일 php 7.3.15에서 php 7.3.16으로의 업데이트가 떠서 업데이트를 하려고 했다.

sudo yum update 명령을 내렸는데 아래와 같이 트랜잭션 오류가 발생했다.

Transaction check error:
  file /usr/lib64/php/modules/zip.so from install of php-common-7.3.16-1.amzn2.x86_64 conflicts with file from package php-pecl-zip-1.15.4-1.amzn2.x86_64

 

인터넷 검색을 통해 다양한 방법으로 해결해 보려고 시도했지만 해결되지 않았다.

그러다 참고사이트를 발견하고 이 문제를 해결 할 수 있는 제일 비슷한 솔루션 일듯 싶어 시도하게 되었다.

sudo yum install pcre-devel gcc zlib zlib-devel
sudo pecl channel-update pecl.php.net
sudo pecl install zip

설치 내용

downloading zip-1.18.2.tgz ...
Starting to download zip-1.18.2.tgz (301,112 bytes)
.............................................................done: 301,112 bytes
14 source files, building
running: phpize
Configuring for:

...중간 생략...

checking libzip... yes
checking PHP version... 7.3
checking for pkg-config... /usr/bin/pkg-config
checking for libzip... not found
configure: error: Please reinstall the libzip distribution
ERROR: `/var/tmp/zip/configure --with-php-config=/usr/bin/php-config' failed

제일 아래 저 두 줄에서 에러가 난다.

libzip 을 재설치 하라고 해서 설치했는데도 여전히 에러가 난다.

sudo yum info libzip 으로 확인해 보면 설치가 되어 있긴 한데 2가지 버전이 있다. 64비트와 32비트

 

64비트 버전이 설치되어 있고, 32비트 버전은 설치되어 있지 않다. 아마 이 부분 때문에 문제가 생기지 않나 싶다.

서버에 조예가 깊지 않아 더 이상 진행하지 않고 AWS에서 관련 패치를 내 주길 기다려야겠다.

+ Recent posts