尝试安装 valgrind 但卡在 make valgrind,怎么办?
trying to install valgrind but stuck at make valgrind, how?
这可能是个愚蠢的问题,实际上我刚刚tar解决了这个问题。
我正在学习 LCTHW
的教程
我正在尝试安装valgrind,作者指定步骤:
1)下载(没有curl就用wget)
curl -O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2
使用 md5sum 确保它与网站上的匹配
md5sum valgrind-3.6.1.tar.bz2
2) 打开包装。
tar-xjvf valgrind-3.6.1.tar.bz2
cd 进入新创建的目录
cd valgrind-3.6.1
3) 配置它
./配置
4) 成功
制作
5) 安装它(需要 root)
须藤安装
我卡在了第4步,这里要做什么?命令应该是什么样的?我以前做过c程序,但我需要指定这里的哪个文件?
这是我在 运行 制作时得到的:
Blackbeard@PC-DEV-A179:~/valgrind-3.6.1$ make
make: *** No targets specified and no makefile found. Stop.
编辑:
正如 user43250937 指出的那样,./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
我是 运行ning Ubuntu 14.04 LTS
第 3 步(配置),可能由于缺少 dependecies/libraries 而未正确完成,请检查该命令的输出。
编辑:您需要一个支持内核 3.x 的较新版本的 Valgrind,现在它们在 valgrind-3.10.1
,可以使用。
根据您的输出:
configure: error: Valgrind works on kernels 2.4, 2.6
您是否下载了过时的 valgrind 副本?此外,在 Ubuntu 上,您可以
sudo apt-get install valgrind
这可能是个愚蠢的问题,实际上我刚刚tar解决了这个问题。 我正在学习 LCTHW
的教程我正在尝试安装valgrind,作者指定步骤:
1)下载(没有curl就用wget)
curl -O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2
使用 md5sum 确保它与网站上的匹配
md5sum valgrind-3.6.1.tar.bz2
2) 打开包装。
tar-xjvf valgrind-3.6.1.tar.bz2
cd 进入新创建的目录
cd valgrind-3.6.1
3) 配置它
./配置
4) 成功
制作
5) 安装它(需要 root)
须藤安装
我卡在了第4步,这里要做什么?命令应该是什么样的?我以前做过c程序,但我需要指定这里的哪个文件?
这是我在 运行 制作时得到的:
Blackbeard@PC-DEV-A179:~/valgrind-3.6.1$ make
make: *** No targets specified and no makefile found. Stop.
编辑:
正如 user43250937 指出的那样,./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
我是 运行ning Ubuntu 14.04 LTS
第 3 步(配置),可能由于缺少 dependecies/libraries 而未正确完成,请检查该命令的输出。
编辑:您需要一个支持内核 3.x 的较新版本的 Valgrind,现在它们在 valgrind-3.10.1
,可以使用。
根据您的输出:
configure: error: Valgrind works on kernels 2.4, 2.6
您是否下载了过时的 valgrind 副本?此外,在 Ubuntu 上,您可以
sudo apt-get install valgrind