Mac install brew[turn]

Source: Internet
Author: User
Tags install brew

Install Brew under Mac

1. Install Xcode

Xcode-select--install

2. Installing homebrew

Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

3. Check if there are any conflicts, etc. homebrew

Brew Doctor

4. Update Brew

sudo brew update
sudo brew upgrade

5. Add a different source

Brew Tap Homebrew/dupes
Brew Tap homebrew/php

Add before you can install PHPFPM
6. Installing the PHP sample

Brew Install--without-apache--with-fpm--with-mysql php56

7. Setting environment variables for user-installed programs

# 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

Mac install brew[turn]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.