我嘗試通過以下命令安裝 curl:
brew install php5-curl
但它給出了這個錯誤:
Warning: No avaliable formula with the name "php-curl".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
我正在使用 mac
uj5u.com熱心網友回復:
如果您只想安裝 cURL,那么您應該使用:
brew install curl如果你想用 cURL 下載 php,那么你可以使用以下步驟:
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
curl -s https://github.com/dossy/homebrew-core/commit/b75fe286f79e2b89548c5ed1bbe1958313c5c103.patch | patch -p1
brew reinstall php --build-from-source
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/503644.html
上一篇:如何在陣列php中過濾零?
