如何在mac os 10.9上安装valgrind

时间:2014-07-09 02:49:03

标签: valgrind

Port不支持在最新的mac os上安装valgrind。我无法从源代码编译它。我想知道是否有人在mac os 10.9上安装了它。这是我收到的错误消息:

./autogen.sh
running: aclocal
running: autoheader
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
error: while running 'autoheader'

1 个答案:

答案 0 :(得分:0)

我是从修补的分支here安装的,这是我的安装工作方式,请按照以下步骤进行操作::

//Make sure you have autoconf and automake both are installed.
sudo port -v install automake
sudo port -v install autoconf

//get patched valgrind on "homebrew" branch
cd ~/some_directory  
git clone https://github.com/fredericgermain/valgrind/ -b homebrew
cd valgrind

//clone it
git submodule init
git submodule update

//compile valgrind
./autogen.sh
./configure
make
sudo make install

//confirm installation
calvin % which valgrind