從新編譯php報錯php
configure: error: Please reinstall the libzip distributionphp7
使用yum安裝無效curl
[root@xinsz08 php-7.3.6]# yum install libzipLoaded plugins: fastestmirror Loading mirror speeds from cached hostfile Package libzip-0.10.1-8.el7.x86_64 already installed and latest version Nothing to do
下載新版本ide
[root@xinsz08 php-7.3.6]# curl -O https://libzip.org/download/libzip-1.5.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
[root@xinsz08 ~]# tar xf libzip-1.5.2.tar.gz[root@xinsz08 ~]# cd libzip-1.5.2[root@xinsz08 bulid]# yum install cmake[root@xinsz08 bulid]# mkdir bulid[root@xinsz08 bulid]# cd bulid/[root@xinsz08 bulid]# yum remove libzip
cmake版本也會出現太低的狀況:ui
下載cmakeurl
root@xinsz08 bulid]# wget https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.sh[root@xinsz08 ~]# chmod 777 cmake-3.18.0-Linux-x86_64.sh ## 加權限
卸載掉原來的cmakeip
[root@xinsz08 ~]# yum remove cmake
執行腳本安裝新的
[root@xinsz08 ~]# ./cmake-3.18.0-Linux-x86_64.shrem
進入build目錄get
[root@xinsz08 libzip-1.5.2]# cd bulid/[root@xinsz08 bulid]# lscmake-3.18.0-Linux-x86_64.sh CMakeCache.txt CMakeFiles
執行cmake
作軟鏈接it
[root@xinsz08 bulid]# ln -s /home/zmedu/cmake-3.18.0-Linux-x86_64/bin/cmake /usr/bin/cmake
編譯
[root@xinsz08 bulid]# cmake ..[root@xinsz08 bulid]# make[root@xinsz08 bulid]# make install
安裝成功後,繼續編譯php7