I downloaded Valgrind 3.7.0 and ran:
./configure
make
make install
However when I run valgrind –version, I get 3.5.0. How is this possible? I am running Mac OS X Lion 10.7. I know I downloaded 3.7.0 because the tar file I downloaded from Valgrind’s website name isvalgrind-3.7.0.
What other ways can I check for the version?
By default, valgrind binaries should get installed in
/usr/local/binwhen you compile from source without providing a--prefix.(You really just did
./configure && make && make installand had the permissions to install, right?)See if
/usr/local/bin/valgrindexists.Execute
/usr/local/bin/valgrind --version. What is the version?Execute
which valgrind. This should tell you where the valgrind binary is being picked from. Is it the same? My guess is, it is probably not.Execute
echo $PATHto see your path. This gives a:delimited list of directories wherebashsearches for executables, in the order in which the directories are listed.My guess is:
There is an existing
valgrindinstallation of the old version, and it shows up in a directory that appears earlier in your$PATHthan/usr/local/bin.