如何在Mac上构建和安装Valgrind? [英] How to build and install Valgrind on Mac?

查看:901
本文介绍了如何在Mac上构建和安装Valgrind?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X上使用代码块10.05

I am on Mac OS X using codeblocks 10.05

我下载了Valgrind,并解压缩了一个文件夹。我从那里完全迷失了,也不知道如何构建它。

I downloaded Valgrind, and extracted a folder. I am completely lost from there, and have no idea how to build it.

我不知道任何终端/控制台命令,并且通常是编程新手,所以我有不知道如何构建或编译它。我只是有一个名为Valgrind的文件夹,其中有一堆随机文件。

I do not know ANY terminal/console commands and am generally new to programming, so I have no idea how to "build" or "compile" it. I just have a folder called Valgrind with a bunch of random files in it.

有人可以告诉我如何进行吗?我已经检查了网站/文档,但并没有真正给我安装说明,只是使用说明。

Could someone please tell me how to proceed? I already checked the website/documentation but it didn't really give me installation instructions, just usage instructions.

谢谢

PS:我知道我已经发布了这个问题,但是先前的问题由于过于模糊而被关闭。我重新发布了此信息,并提供了更多信息。

PS: I know I already posted this question, but the previous question was shut down, for being too vague. I reposted this one with more info.

PSS:我基本上要问的是,从网站上下载Valgrind并解压缩后,我该怎么办?文件?

PSS: All that I am basically asking is what do I do to install Valgrind right after I download it from the website and extract the files?

推荐答案

推荐:


使用酿造简单安装valgrind

这是有效的方法在我的Mac(10.6)上。仔细检查您是否拥有最新版本(目前为3.7.0),然后转到未压缩的目录

Here's what worked on my mac (10.6). Double-check you have the latest version (right now, 3.7.0), then change into the uncompressed directory

cd /users/(insert username here)/downloads/valgrind-3.7.0

我建议您另做一篇,阅读自述文件。

I suggest you do as another posted and read the readme.

nano README

开始构建; / usr / local 是程序将安装在文件系统上的位置。如果默认情况下不起作用,则可以使用许多参数,例如前缀来自定义特定系统的安装。通常只需使用 ./ configure 即可很好地工作。

Commence the build; /usr/local is the place on the filesystem that the program will be installed to. There are many arguments like prefix that are available to customize the installation to your particular system if it doesn't work by default. Normally just using ./configure works perfectly well though.

./configure --prefix=/usr/local

make

sudo make install

或者您可能可以从芬克(fink)或Macports或自制软件中获得它。

Or you could probably get it from fink or macports or homebrew.

这篇关于如何在Mac上构建和安装Valgrind?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆