Noor
Noor

Reputation: 99

error installing valgrind on mac

i am installing valgrind on my mac 10.6.8, i go the valgrind directory and run the following commands

>> ./autogen-sh
>> ./configure

its working fine but when i run

>> make

its giving the error alot of errors the last part of error is

ld: symbol(s) not found
make[3]: *** [memcheck-amd64-darwin] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

can anyone give the solution for it i searched alot but did not find anything

Upvotes: 2

Views: 2645

Answers (3)

Ryan Roe
Ryan Roe

Reputation: 11

I was having the same problem as the original poster when I tried to run the manual install of the program after downloading it from http://valgrind.org/downloads/current.html I am using the most current OS, El Capitan. The way I solved my issue was by going to http://brew.sh and downloading that by pasting it into my terminal. Then I ran brew install valgrind It did work and I now have valgrind on my mac. A very useful line to use with Valgrind is

valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./"your executable"

Upvotes: 1

gbuzogany
gbuzogany

Reputation: 1929

You can also use Homebrew:

brew install valgrind

Important: Valgrind is only stable in OS X Mavericks and older versions.

Upvotes: 2

trojanfoe
trojanfoe

Reputation: 122458

I wouldn't install any package from source these days; instead install Macports and simply do:

$ sudo port install valgrind

You should also consider using Instruments instead of valgrind, as it's very much Linux-oriented.

Upvotes: 1

Related Questions