SHA1 error when using brew install

Solution 1:

Everything worked after I ran brew update.

Solution 2:

Incase the brew update fails, try the following

cd `brew --prefix`
git remote add origin https://github.com/Homebrew/homebrew
git fetch origin
git reset --hard origin/master

Solution 3:

I was having the same problem as Steve S regarding epstool dependency on Octave and found this link:

https://github.com/Homebrew/homebrew-science/issues/1110

Check out iml's post about 10 down from the top (his second post). As he explained, I downloaded it from the fedoraproject.org site and then moved it into the /Library/Caches/Homebrew/ directory.

Cheers,

-Maashu