I used to install Valgrind with Homebrew. However after upgrading to Yosemite, the support for Valgrind got lost…
Since my development environment is a remote server running OpenSuse this incompatibility wasn’t really a problem apart from annoying my geeky urge to be up-to-date.
Following this response to a Stackoverflow post valgrind installed like a breeze with brew.
To sum up the answer:
brew install --HEAD valgrind
HOMEBREW_CC=gcc-4.5 HOMEBREW_CXX=g++-4.5 brew install --HEAD valgrindSeveral other guides, Julian Seward, Mario Ranftl, Taras Kalapun, for installing valgrind on Yosemite are on the thing called the internet. However the principle of KISS kept me from spending more time on an already solved problem.Happy debugging!