只要执行这条命令便可: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"git
来自其官网 http://brew.shgithub
Air:~ admin$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1 ==> The following directories will be made group writable: /usr/local/. /usr/local/bin /usr/local/lib /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/info /usr/local/share/doc ==> The following directories will have their group set to admin: /usr/local/. /usr/local/bin /usr/local/lib /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/info /usr/local/share/docmacos
Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/lib /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/info /usr/local/share/doc ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin /usr/local/lib /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/info /usr/local/share/doc ==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Counting objects: 185773, done. remote: Compressing objects: 100% (50992/50992), done. Receiving objects: 7% (13437/185773), 2.64 MiB | 48.00 KiB/s KiB/sruby
等到安装好 homebrew 以后,再执行下面的命令:curl
brew tap phinze/homebrew-cask brew install brew-caskide
之后就能够简单地安装各类软件包了ui
安装完成以后,按照其提示执行this
Run brew doctor
before you install anything Run brew help
to get started Air:~ admin$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks!url
Warning: Your XQuartz (2.7.5) is outdated Please install XQuartz 2.7.6: https://xquartz.macosforge.orgdebug
Warning: Python is installed at /Library/Frameworks/Python.framework
Homebrew only supports building against the System-provided Python or a brewed Python. In particular, Pythons installed to /Library can interfere with other software installs.
Warning: You have MacPorts or Fink installed: /opt/local/bin/port, /sw/bin/fink
This can cause trouble. You don't have to uninstall them, but you may want to temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
Warning: You have leftover files from an older version of Xcode. You should delete them using: /Developer/Library/uninstall-developer-folder
Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted.
Unexpected dylibs: /usr/local/lib/libcdt.5.dylib /usr/local/lib/libcgraph.6.dylib /usr/local/lib/libgvc.6.dylib /usr/local/lib/libgvpr.2.dylib /usr/local/lib/libpathplan.4.dylib /usr/local/lib/libxdot.4.dylib
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted.
Unexpected .pc files: /usr/local/lib/pkgconfig/libcdt.pc /usr/local/lib/pkgconfig/libcgraph.pc /usr/local/lib/pkgconfig/libgvc.pc /usr/local/lib/pkgconfig/libgvpr.pc /usr/local/lib/pkgconfig/libpathplan.pc /usr/local/lib/pkgconfig/libxdot.pc
Warning: You have a non-Homebrew 'pkg-config' in your PATH: /opt/local/bin/pkg-config
./configure
may have problems finding brew-installed packages using this other pkg-config. Air:~ admin$