Linux valgrind 部署安装

本文介绍了Valgrind——一款用于内存调试、内存泄漏检测及性能分析的软件开发工具。详细阐述了在Linux环境下从Subversion仓库或tar.bz2分发版安装Valgrind的步骤,并提供了验证安装是否成功的建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Valgrind是一款用于内存调试、内存泄漏检测以及性能分析的软件开发工具。

Valgrind这个名字取自北欧神话中英灵殿的入口


下面介绍下Linux 环境下面安装的步骤,其他系统的安装参考压缩包里面README:


Building and installing it

~~~~~~~~~~~~~~~~~~~~~~~~~~
To install from the Subversion repository :


  0. Check out the code from SVN, following the instructions at

     http://www.valgrind.org/downloads/repository.html.

 -- 官方网站下载最新的安装包



  1. cd into the source directory.
 

  2. Run ./autogen.sh to setup the environment (you need the standard
     autoconf tools to do so).


  3. Continue with the following instructions...


To install from a tar.bz2 distribution:


  4. Run ./configure, with some options if you wish.  The only interesting
     one is the usual --prefix=/where/you/want/it/installed.


  5. Run "make".


  6. Run "make install", possibly as root if the destination permissions
     require that.


  7. See if it works.  Try "valgrind ls -l".  Either this works, or it

     bombs out with some complaint.  In that case, please let us know



一些资料的网址:


Valgrind 官网地址

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值