1. 程式人生 > >CentOS源碼安裝php

CentOS源碼安裝php

mir spa error style zxvf 安裝 出錯 .gz not found

//下載php

wget http://php.net/get/php-7.2.8.tar.gz/from/a/mirror

//解壓

tar -zxvf php-7.2.8.tar.gz

//進入目錄

cd php-7.2.8

//選擇目錄,編譯安裝

./configure --prefix=/usr/local/php

make && make install

//答錯出錯數

echo $?

#編譯出錯

configure: error: xxx not found. Please check your xxx installation.

安裝 yum install xxx-devel -y

CentOS源碼安裝php