Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 安装valgrind时出错_Macos_Valgrind - Fatal编程技术网

Macos 安装valgrind时出错

Macos 安装valgrind时出错,macos,valgrind,Macos,Valgrind,我试图在mac上安装valgrind,但当我执行/autogen.sh时,出现以下错误: running: aclocal ./autogen.sh: line 6: aclocal: command not found error: while running 'aclocal' 有人知道如何解决这个问题吗?您没有安装自动工具。如果要运行autogen.sh,必须先运行它 但如果您只想安装valgrind,则不需要运行autogen.sh。从下载最新的源程序包,将其解压缩并运行/config

我试图在mac上安装valgrind,但当我执行
/autogen.sh
时,出现以下错误:

running: aclocal
./autogen.sh: line 6: aclocal: command not found
error: while running 'aclocal'

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

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

但如果您只想安装valgrind,则不需要运行
autogen.sh
。从下载最新的源程序包,将其解压缩并运行
/configure
脚本

$ ./configure
$ make
$ sudo make install
但是,如果您的系统是Yosemite,您可能需要svn的最新开发版本,您必须首先安装autotools。

您的系统上需要两个第三方工具(autoconf和automake)来构建和安装Valgrind的开发版本。这些工具不再与苹果的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
然后,您将能够根据继续执行以下步骤:

如果您使用的是OS X,您将希望目前使用Valgrind的开发版本,同时该平台的支持恢复到标准。

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

brew install automake 

然后你可以使用aclocal

我本周早些时候花了一些时间试图在约塞米蒂安装valgrind,后来放弃了。我尝试了自制和MacPorts安装(最新开发版本),但由于各种原因都失败了。不过,请搜索StackOverflow以了解此主题,因为已经有很多相关的问题/答案(例如),并且至少有一个SO投稿人(@RhysKidd)在valgrind上工作。从valgrind 3.11.0开始,应该有合理的Yosemite(OS X 10.10)开箱即用支持。