这可能是个愚蠢的问题,其实我刚开始提这个问题。我正在学习关于LCTHW的教程
我正在尝试安装val差制,作者指定了步骤:
1)下载(如果没有卷发,请使用wget )
卷曲-O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2
使用md5sum确保它与站点上的匹配
md5sum val研-3.6.1.tar.bz2
2)拆开包装。
焦油-xjvf缬磨-3.6.1.tar.bz2
光盘进入新创建的目录。
光盘-3.6.1
3)配置它
./配置
4)使之成为
制作
5)安装它(需要根)
sudo make安装
我被困在第四步,在这里做什么?命令应该是什么样子的?我以前做过c程序,但是这里需要指定哪个特定的文件?
这就是我跑make时得到的:
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我正在运行Ubuntu14.04LTS
发布于 2015-05-12 08:53:18
步骤3(配置),可能由于缺少依赖程序/库而无法正确完成,请检查该命令的输出。
编辑:您需要一个支持内核3.x的更新版本的Valgrind,现在它们已经在valgrind-3.10.1上运行了。
发布于 2015-05-12 08:59:53
从您的输出:
configure: error: Valgrind works on kernels 2.4, 2.6你下载了一本很老的书吗?另外,在Ubuntu上,你可以
sudo apt-get install valgrindhttps://stackoverflow.com/questions/30185971
复制相似问题