مرکز آموزش

خطای عدم آپدیت libzip هنگام بیلد php

خطای عدم آپدیت libzip هنگام بیلد php

متن خطا:

The current latest version of PHP isPHP7.3, The following error was reported during the installation attempt today:system libzip must be upgraded to version >= 0.11, According to the prompt, we can clearly know that the system comes withlibzipThe version is low, here we need to install the latest libzip.

راهکار:

ابتدا libzip را حذف کنید

yum  -y remove libzip-devel

با اجرای دستورات زیر libzip رااز وب سایت رسمی دانلود، کامپایل و نصب کنید:

wget https://libzip.org/download/libzip-1.3.2.tar.gz
tar xvf libzip-1.3.2.tar.gz
cd libzip-1.3.2
./configure
make && make install

اگر نسخه بالای 1.5 را دانلود می کنید، باید از روش نصب زیر استفاده کنید.

***** در غیر این صورت این مرحله را انجام ندهید: *****

yum -y install cmake
wget https://libzip.org/download/libzip-1.5.1.tar.gz
tar -zxvf libzip-1.5.1.tar.gz
cd libzip-1.5.1
mkdir build
cd build
cmake ..
make && make install

وب سرور و php را ریستارت کنید.

نسخه جدید در info.php قابل مشاهده است.

در همین زمینه