Installation and Use of homebrew, a tool for Mac OS X programmers
Install and use homebrew
What is homebrew?
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X.
We can easily use it through the terminal to install and manage apple without the built-in Unix-related tool software.
How to install?
Reference GitHub address: https://github.com/mxcl/homebrew/wiki/installation
We recommend that you delete the installed Fink and macports before installation.
Homebrew uses Ruby scripts, and Mac OS X already comes with Ruby.
- Ruby-e "$ (curl-fssl https://raw.github.com/gist/323731 )"
How to use it?
Update formulae to ensure that the file source installed each time is the latest.
- Brew update
View the software you need, for example, JPEG-related software.
- Brew search JPEG
Three results are displayed.
- JPEG optional optim openjpeg
Then install the required software.
- Brew install strongoptim
Homebrew is updated quickly and easy to install. We recommend that you use it. If the source code in formulae is thrown to the wall, you can directly modify the source code in the RB script.