Mac Brew install
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac Brew install相关的知识,希望对你有一定的参考价值。
参考技术A 安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
brew update 更新brew
brew install 应用名,如git 安装软件
brew uninstall;
brew search /app*/
//里是正则表达式
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的主要内容,如果未能解决你的问题,请参考以下文章