Method 1: Download the source code, compile and install the code, and perform wgethttp: // compile.
Method 1: Download the source code, compile and install it, which is complex
Wget http://valgrind.org/downloads/valgrind-3.4.1.tar.bz2
Tar xvf valgrind-3.4.1.tar.bz2
Cd valgrind-3.4.1/
./Configure -- prefix =/usr/local/
Make
Make install
However, after installation, an error is always prompted during running! I tried it many times. In the beginning, the memcheck path cannot be found. The strace command is used to solve the problem.
Method 2: sudo apt-get install valgrind. This is simple, but the speed is too slow to scare people.
Method 3: Download the Binary Package, which is a. deb package under Ubuntu.
For: http://pkgs.org/download/valgrind, pay attention to different systems and versions, the corresponding package is not the same.
Ubuntu 11.04 deb package: http://archive.ubuntu.com/ubuntu/pool/main/v/valgrind/valgrind_3.6.1-0ubuntu1_i386.deb
After the download is complete, double-click and use the software center to install it!