Unable to install software packages using Home Brew

This error indicates that the files being downloaded are corrupt or not the expected files. What is your internet connection like? Try downloading these URLs directly from your browser. (If your router or ISP is inserting ads or a login page, you may be downloading this instead of the actual file.)


Type

brew cleanup

follow by

brew update

then try again!


Remove the previously downloaded files:

cd /Library/Caches/Homebrew/
rm cmake-2.8.10.1.lion.bottle.tar.gz wget-1.14.tar.gz

You may need to do the above as sudo. Then try the install again:

brew install mysql wget