Yosimite10.10(Mac os)安装c/c++内存检测工具valgrind

1.下载支持包m4-1.4.13.tar.gz

$ curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz

2. 解压m4-1.4.13.tar.gz包
$ tar -xzvf m4-1.4.13.tar.gz
$ cd m4-1.4.13

3.配置安装,prefix用于制定安装路径
$ ./configure –prefix=/usr/local

4. 8线程并行编译
$ make -j8

5. 普通用户加特权安装到configure配置的安装路径中去
$ sudo make install


cd ..
curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure –prefix=/usr/local
make
sudo make install


cd ..
curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure –prefix=/usr/local
make
sudo make install
cd ..


curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure –prefix=/usr/local
make

sudo make install

 

安装valgrind 

curl -O http://valgrind.org/downloads/valgrind-3.11.0.tar.bz2
tar -xjvf valgrind-3.11.0.tar.bz2
cd valgrind-3.11.0
./configure
make
sudo make install

posted @ 2018-02-01 08:05  PKICA  阅读(504)  评论(2编辑  收藏  举报