安装valgrind时出错

DRI*_*INK 23 macos valgrind

我尝试在我的Mac上安装valgrind但是当我执行时./autogen.sh得到这个错误:

running: aclocal
./autogen.sh: line 6: aclocal: command not found
error: while running 'aclocal'
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?

庄景鹏*_*庄景鹏 54

brew install automake 
Run Code Online (Sandbox Code Playgroud)

然后你可以使用aclocal


Rhy*_*idd 7

您的系统需要两个第三方工具(autoconf和automake)来构建和安装Valgrind的开发版本.这些工具不再与Apple的Xcode开发环境一起打包,必须手动安装.

要安装这些工具,请在终端中输入以下命令:

curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
tar -xzf autoconf-latest.tar.gz 
cd autoconf-[x.xx]
./configure && make && sudo make install

curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
tar -xzf automake-1.15.tar.gz
cd automake-1.15
./configure && make && sudo make install
Run Code Online (Sandbox Code Playgroud)

然后,您将能够继续执行以下步骤:http://valgrind.org/downloads/repository.html

如果您使用的是OS X,那么您将需要使用Valgrind的开发版本,同时该平台的支持将恢复到标准状态.


小智 6

如果您安装brew,则使用brew install automakebrew install autoconf


baf*_*baf 5

您没有安装自动工具。如果要运行autogen.sh,则必须先安装它。

但是,如果您只想安装 valgrind,则无需运行autogen.sh. 从valgrind.org下载最新的源包,解压并运行./configure脚本。

$ ./configure
$ make
$ sudo make install
Run Code Online (Sandbox Code Playgroud)

但是,如果您的系统是 Yosemite,您可能需要来自 svn 的最新开发版本,并且您必须先安装 autotools。