$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
It is recommended to install brew cask which is an application installer. Its different from default brew as brew only installs in command binary apps in bin folder, meaning you can only access them via commandline. Cask which is an addition, installs standard mac applications for you.
$ brew install caskroom/cask/brew-cask
After installation. open terminal and run brew update and brew doctor
$ brew update
$ brew doctor
You should get lots of updates and installs plus warning. Now if you look at the problems, you may find this problem. Where do you update the bash file or profile. basically you should be able to find this in your home directory. the home directory is the current folder when you open up terminal. Alternatively just type ~/ .which will bring you back to your home directory.
$ cd ~
Okay. next is to create a bash profile. so try the following
$ open -t ~/.bash_profile
If you get an error. Just do this.
$ touch ~/.bash_profile
$ open -t ~/.bash_profile
Next add in these lines to your end of profile.
# HomeBrew Added Paths
export PATH=”/usr/local/bin:$PATH:/usr/local/sbin”
Then redo the brew doctor again. You should see less problems.
$ source ~/.profile> brew doctor
If you are all okay you should get “Your system is raring to brew.
“
Some common errors listed below and perhaps you can fix.
Problem 1
Warning: Some directories in /usr/local/share/man aren’t writable.
This can happen if you “sudo make install” software that isn’t managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:
/usr/local/share/man/de
/usr/local/share/man/de/man1
Solution:
$ sudo chmod -R 777 /usr/local/share/man/de
Problem 2
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/libntfs-3g.54.0.0.dylib /usr/local/lib/libntfs.9.0.0.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/libntfs-3g.pc
Warning: Unbrewed static libraries 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.
Solution: Remove the files by
$ rm /usr/local/lib/libntfs-3g.54.0.0.dylib