I am installing Valgrind but encounter some problems. The info of my platform:
Linux xx-ThinkPad-X61 3.2.0-39-generic-pae #62-Ubuntu SMP Wed Feb 27 22:25:11 UTC
Valgrind indicates it cannot work because it is missing the libc debug info, and it indicates which package has to be installed to solve that. In your case (Ubuntu), you must install libc6-dbg
I also faced this error, but finally resolved in below manner.
I am having 64 bit Ubuntu 14.04, and my executable is 32 bit. When I run my 32 bit executable with valgrind I got this same error. This error was not resolved even after installing libc6-dbg
(using command apt-get install libc6-dbg
).
Later I found like whatever libc6-dbg
present in my machine was 64 bit and valgrind requires a 32 bit libc6-dbg
to run my 32 bit executable. After installing 32 bit libc6-dbg
(using the command apt-get install libc6-dbg:i386
) it started working.
apt install -y libc6-dbg
It worked for me. (Note: without :i386
.)
A hunch is that Valgrind might have upgraded to 64-bit since the answer
by rashok was written.