mac 下 brew install wget 出错 怎么回事
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac 下 brew install wget 出错 怎么回事相关的知识,希望对你有一定的参考价值。
maxdeMacBook-Pro:~ max$ brew install wget==> Installing wget dependency: openssl
==> Downloading Homebrew - Browse Files at SourceForge.net
curl: (7) Failed connect toIP Connection refused
Error: Failed to download resource "openssl"
Download failed: Homebrew - Browse Files at SourceForge.net.1i.mavericks.bottle.3.tar.gz
Warning: Bottle installation failed: building from source.
Error: /usr/local/opt/makedepend not present or broken
如果不行,就说明你被墙了。用VPN。 参考技术A 首先你必须确保正确安装了XCode的命令行工具。具体方法可以参考GitHub上的homebrew-php。另外你也可以试试MacPorts。
MAC下安装Brew[转]
MAC下安装Brew
1.安装XCode
xcode-select --install
2.安装HomeBrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.检查homebrew是否有冲突等
brew doctor
4.更新Brew
sudo brew update
sudo brew upgrade
sudo brew upgrade
5.添加其它的源
brew tap homebrew/dupes
brew tap homebrew/php
brew tap homebrew/php
添加后才可以安装PHPFPM
6.安装PHP示例
brew install --without-apache --with-fpm --with-mysql php56
7.设置用户安装的程序的环境变量
# If you use Bash
echo ‘export PATH="/usr/local/sbin:$PATH"‘ >> ~/.bash_profile
. ~/.bash_profile
# If you use ZSH
echo ‘export PATH="/usr/local/sbin:$PATH"‘ >> ~/.zshrc
. ~/.zshrc
echo ‘export PATH="/usr/local/sbin:$PATH"‘ >> ~/.bash_profile
. ~/.bash_profile
# If you use ZSH
echo ‘export PATH="/usr/local/sbin:$PATH"‘ >> ~/.zshrc
. ~/.zshrc
以上是关于mac 下 brew install wget 出错 怎么回事的主要内容,如果未能解决你的问题,请参考以下文章