You might see “configure: error: cannot run C compiled programs.” error when trying to install some package using homebrew.
It happened to me when upgraded to a new major release of Mac OSX. (e.g. from 10.10 to 10.11)
Open terminal, execute following command, and install Xcode command line development tools.
After installation, homebrew will work as expected.
즉, xcode command line develop tool을 재설치해서 해결한다는 의미입니다.