Linux下安装php环境
如果想一步到位,则使用下面的流程进行安装: 第一步: 安装cmake yum install epel-release -y yum install cmake3 -y cp /usr/bin/cmake3 /usr/bin/cmake 执行命令 cmake -version 查看是否安装成功: #输出 cmake version 3.16.1 CMake suite maintained and supported by Kitware (kitware.com/cmake). 第二步:安装libzip1.5.2 #安装bzip2-devel依赖包 yum install bzip2 bzip2-devel -y #安装libzip cd ~ wget https://libzip.org/download/libzip-1.5.2.tar.gz tar xf libzip-1.5.2.tar.gz cd libzip-1.5.2 mkdir build cd build cmake .. make #make test make install 第三步:安装php依赖 yum install gcc \ gcc-c++ \ libxml2 \ libxml2-devel \ openssl \ openssl-devel \ libcurl \ libcurl-devel \