Used Ubuntu system know that there is a command apt-get very convenient to quickly install a lot of software special lamp environment is a key installation.
There are similar commands on the Mac brew
Brew usage can access the official website address http://brew.sh/
But the command to install brew on your Mac is as follows
CURL-LSSF http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1
But according to the above method of installation, did not succeed, and no error reported, after the installation completed in the/usr/local directory did not find the brew executable program, my Mac OS version is 10.10.2 (14c109)
Later, you can use the Ruby command to install it in accordance with the official website
" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "
The following is a detailed introduction to the installation of the above 2 methods
Https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md#installation
Install Brew on Mac