ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Run `brew doctor` before you installanything
那就按照它的提示来一趟吧~~~
执行完后一堆提示:
Please note that these warnings are just used to helpthe Homebrew maintainers
with debugging if you file an issue. If everythingyou use Homebrew for is
working fine: please don't worry and just ignorethem. Thanks!
Warning: python is symlinked to python3
This will confuse build scripts and in general leadto subtle breakage.
Warning: Python is installed at/Library/Frameworks/Python.framework
Homebrew only supports building against theSystem-provided Python or a
brewed Python. In particular, Pythons installed to/Library can interfere
with other software installs.
Warning: Unbrewed dylibs were found in/usr/local/lib.
If you didn't put them there on purpose they couldcause problems when
building Homebrew formulae, and may need to bedeleted.
Unexpected dylibs:
Warning: Unbrewed .la files were found in/usr/local/lib.
If you didn't put them there on purpose they couldcause problems when
building Homebrew formulae, and may need to bedeleted.
Unexpected .la files:
Warning: Unbrewed .pc files were found in/usr/local/lib/pkgconfig.
If you didn't put them there on purpose they couldcause problems when
building Homebrew formulae, and may need to bedeleted.
Unexpected .pc files:
Warning: Unbrewed static libraries were found in/usr/local/lib.
If you didn't put them there on purpose they couldcause problems when
building Homebrew formulae, and may need to bedeleted.
Unexpected static libraries:
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be usedinstead of those
provided by Homebrew. The following tools exist atboth paths:
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
------------------------
不管它,接下来就可以用brew来安装软件了
查找你要的组件:
brew search xxx
显示出结果:
xxx1 xxx2 xxxx3
选择你需要的组件安装:
brew install xxx1
卸载组件就是:
brew remove xxx1
如果哪天你不需要brew了,就按照以下命令卸载:
cd `brew –prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.mdshare/man/man1/brew
rm -rf ~/Library/Caches/Homebrew