Homebrew have provided a document on how to address the potential issue you may encounter due to apples new SIP functionality in OS X El Capitan. Read the details at: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md#if-usrlocal-does-not-exist