valgrind安装在./configure时出错

./configure 出错
checking for a supported version of gcc... Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
no (applellvm-9.0.0)
configure: error: please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0
这是为什么??

mkdir: cannot create directory `/usr/local/include/valgrind': Permission denied
应该是没有权限。
尝试make或者make install的时候加上sudo。
例如:
sudo make;
sudo make install