Install Ubuntu memory leak detection tool Valgrind

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.