在已經編譯安裝好php7場景下安裝curl擴展
cd /root/php7/php-7.2.31/ext/curl #從php官網下載php原始碼安裝包
/usr/local/php746/bin/phpize #已經安裝好的phpize的路徑
yum install libcurl-devel #沒有這個會報錯 for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL suppor
configure --with-php-config=/usr/local/php746/bin/php-config
make
make test
make install
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/61708.html
標籤:Linux
