C 试图安装valgrind,但却被困在make valgrind,如何安装?

C 试图安装valgrind,但却被困在make valgrind,如何安装?,c,makefile,valgrind,gnu-make,C,Makefile,Valgrind,Gnu Make,这可能是一个愚蠢的问题,事实上我刚刚开始。 我正在跟随一个教程去学习 我正在尝试安装valgrind,作者指定了以下步骤: 1) 下载它(如果没有curl,请使用wget) 旋度-O 使用md5sum确保它与站点上的匹配 md5sum valgrind-3.6.1.tar.bz2 2) 打开它。 tar-xjvf valgrind-3.6.1.tar.bz2 将cd放入新创建的目录中 cd-3.6.1 3) 配置它 /配置 4) 成功 制造 5) 安装它(需要根目录) sudo制作安装 我被困在

这可能是一个愚蠢的问题,事实上我刚刚开始。 我正在跟随一个教程去学习

我正在尝试安装valgrind,作者指定了以下步骤:

1) 下载它(如果没有curl,请使用wget) 旋度-O

使用md5sum确保它与站点上的匹配 md5sum valgrind-3.6.1.tar.bz2

2) 打开它。 tar-xjvf valgrind-3.6.1.tar.bz2

将cd放入新创建的目录中 cd-3.6.1

3) 配置它 /配置

4) 成功 制造

5) 安装它(需要根目录) sudo制作安装

我被困在第四步,在这里做什么?命令应该是什么样子?我以前做过c程序,但我需要在这里指定哪个特定的文件

这是我运行make时得到的结果:

Blackbeard@PC-DEV-A179:~/valgrind-3.6.1$ make
make: *** No targets specified and no makefile found.  Stop.
编辑: 正如用户43250937指出的,
/configure
工作不正常,我得到以下信息:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.8.2)
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... ok (linux-gnu)
checking for the kernel version... unsupported (3.13.0-49-generic)
configure: error: Valgrind works on kernels 2.4, 2.6
我正在运行Ubuntu14.04 LTS

步骤3(配置),可能由于缺少依赖项/库而无法正确完成,请检查该命令的输出

编辑:您需要一个支持内核3.x的较新版本的Valgrind,现在它们位于
Valgrind-3.10.1
,可以正常工作。

步骤3(配置),可能由于缺少依赖项/库而无法正确完成,请检查该命令的输出

编辑:您需要一个支持内核3.x的较新版本的Valgrind,现在它们位于
Valgrind-3.10.1
,可以正常工作。

步骤3(配置),可能由于缺少依赖项/库而无法正确完成,请检查该命令的输出

编辑:您需要一个支持内核3.x的较新版本的Valgrind,现在它们位于
Valgrind-3.10.1
,可以正常工作。

步骤3(配置),可能由于缺少依赖项/库而无法正确完成,请检查该命令的输出

编辑:您需要一个支持内核3.x的较新版本的Valgrind,现在它们位于
Valgrind-3.10.1
,可以正常工作。

从您的输出:

configure: error: Valgrind works on kernels 2.4, 2.6
你下载了一本旧得可笑的valgrind吗?另外,在Ubuntu上,你可以

sudo apt-get install valgrind
从您的输出中:

configure: error: Valgrind works on kernels 2.4, 2.6
你下载了一本旧得可笑的valgrind吗?另外,在Ubuntu上,你可以

sudo apt-get install valgrind
从您的输出中:

configure: error: Valgrind works on kernels 2.4, 2.6
你下载了一本旧得可笑的valgrind吗?另外,在Ubuntu上,你可以

sudo apt-get install valgrind
从您的输出中:

configure: error: Valgrind works on kernels 2.4, 2.6
你下载了一本旧得可笑的valgrind吗?另外,在Ubuntu上,你可以

sudo apt-get install valgrind



是的,伙计,你是对的。我错过了。我已经更新了我的问题。嗨,用户,您需要更新版本的Valgrind,下载3.10.1。谢谢,伙计,让我试试:)或者用apt get安装:)是的,伙计,您是对的。我错过了。我已经更新了我的问题。嗨,用户,您需要更新版本的Valgrind,下载3.10.1。谢谢,伙计,让我试试:)或者用apt get安装:)是的,伙计,您是对的。我错过了。我已经更新了我的问题。嗨,用户,您需要更新版本的Valgrind,下载3.10.1。谢谢,伙计,让我试试:)或者用apt get安装:)是的,伙计,您是对的。我错过了。我已经更新了我的问题。嗨,用户,你需要一个更新版本的Valgrind,下载3.10.1。谢谢伙计,让我试试:)或者用apt get:)安装它。你只需试试
sudo aptitude install Valgrind
,因为Ubuntu打包了它。我想用最艰难的方式来完成它!然后先运行
sudoaptitude build dep valgrind
现在你让我很好奇,我也需要对此进行研究,谢谢你,伙计:)你应该试试
sudoaptitude安装valgrind
,因为Ubuntu已经打包了它。我想用最艰难的方式来完成它!然后先运行
sudoaptitude build dep valgrind
现在你让我很好奇,我也需要对此进行研究,谢谢你,伙计:)你应该试试
sudoaptitude安装valgrind
,因为Ubuntu已经打包了它。我想用最艰难的方式来完成它!然后先运行
sudoaptitude build dep valgrind
现在你让我很好奇,我也需要对此进行研究,谢谢你,伙计:)你应该试试
sudoaptitude安装valgrind
,因为Ubuntu已经打包了它。我想用最艰难的方式来完成它!然后先运行
sudo aptitude build dep valgrind
现在你让我很好奇,我也需要对此进行研究,谢谢伙计:)谢谢伙计,如果3.10.1不起作用,我会再试一次。我会照你的建议去做!只要用软件包管理器安装它,你就不必担心升级或删除它,只需让Ubuntu来处理它。它也会比编译快得多。谢谢,伙计,如果3.10.1不起作用,我会再试一次。我会照你的建议去做!只要用软件包管理器安装它,你就不必担心升级或删除它,只需让Ubuntu来处理它。它也会比编译快得多。谢谢,伙计,如果3.10.1不起作用,我会再试一次。我会照你的建议去做!只要用软件包管理器安装它,你就不必担心升级或删除它,只需让Ubuntu来处理它。它也会比编译快得多。谢谢,伙计,如果3.10.1不起作用,我会再试一次。我会照你的建议去做!只要用软件包管理器安装它,你就不必担心升级或删除它,只需让Ubuntu来处理它。它也将比编译快得多。