written in the previous words:
1. Create a shell note change permissions to run CHOMD 777 XXX
2. Note The path to the installation. The location may not be local. Look at the printed log.
3. If the path you are installing is not the original path, be careful to change the path Original: http://webmedia.blog.163.com/blog/static/416695020123261226695/ Don't want to be misled? Look directly at the official documents: http://mxcl.github.com/homebrew/first install git, open a shell
cd /usr/local sudo mkdir homebrewCurl -L https://github.com/mxcl/homebrew/tarball/master | sudo tar xz--strip 1-c homebrew CD Homebrew/bin./brew-vFile BrewCat Brew | moresudo./brew update
If the Brew Update command performs an error, make sure that the owner permissions for the folder/usr/local are you and not root:
sudo chown $USER/usr/localbrew updatUpdate the path configuration in ". Bash_profile" (if there is no file under ~). Bash_profile "Do: Touch '. Bash_profile ') Vim '. Bash_profile ' Join
Export PATH=$PATH:/usr/local/homebrew/bin
You can then execute the brew directly (without./brew) If you have git, you can install it (not tested)
git clone https://github.com/mxcl/homebrew.git
CD Homebrew/Bin
CD Homebrew/Bin
./Brew -v
Install the test./brew install wget./brew Uninstall wget
./brew searc/apache*/
[Carry]mac under the installation of brew