I installed PIL and then I installed libjpeg and I get the following errors:
jpeg8-d is already installed, it's just not linked
Could not symlink file: /usr/local/Cellar/jpeg/8d/bin/wrjpgcom
Target /usr/local/bin/wrjpgcom already exists. You may need to delete it.
To force the link and delete this file, do:
brew link --overwrite formula_name
Both the problem and the solution are completely described by the error message you posted. What part of it do you not understand?
This is telling you that, for some reason, you've got already got a
/usr/local/bin/wrjpgcom
from somewhere besides Homebrew, and Homebrew doesn't want to mess with it, in case you had a good reason for it.If you have no idea where that file came from, don't care, and just want it to be blasted, just do
brew link --overwrite jpeg8-d
.You probably also want to run
brew doctor
to have it look for other problems in your setup that you should fix.