[英]PHP: error on installing curl by homebrew
I tried to install curl by following command:我尝试通过以下命令安装 curl:
brew install php5-curl
but it gives this error:但它给出了这个错误:
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.
am using mac我正在使用 mac
If you just want to install cURL, then you should rather use:如果您只想安装 cURL,那么您应该使用:
brew install curl
If you want to download php with cURL, then you can use the following steps:如果要下载 php 和 cURL,则可以使用以下步骤:
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.