c - trying to install valgrind but stuck at make valgrind, how? -
this might silly question, have started it. following tutorial lcthw
and trying install valgrind, author specifies steps:
1) download (use wget if don't have curl)
curl -o http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2
use md5sum make sure matches 1 on site
md5sum valgrind-3.6.1.tar.bz2
2) unpack it.
tar -xjvf valgrind-3.6.1.tar.bz2
cd newly created directory
cd valgrind-3.6.1
3) configure it
./configure
4) make it
make
5) install (need root)
sudo make install
i stuck @ step 4, make here? should command like? have made c programs before specific file in here need specify?
this when run make:
blackbeard@pc-dev-a179:~/valgrind-3.6.1$ make make: *** no targets specified , no makefile found. stop.
edit:
as pinted out user43250937, ./configure
not working properly, following:
$ ./configure checking bsd-compatible install... /usr/bin/install -c checking whether build environment sane... yes checking thread-safe mkdir -p... /bin/mkdir -p checking gawk... gawk checking whether make sets $(make)... yes checking whether enable maintainer-specific portions of makefiles... no checking whether ln -s works... yes checking gcc... gcc checking whether c compiler works... yes checking c compiler default output file name... a.out checking suffix of executables... checking whether cross compiling... no checking suffix of object files... o checking whether using gnu c compiler... yes checking whether gcc accepts -g... yes checking gcc option accept iso c89... none needed checking style of include used make... gnu checking dependency style of gcc... gcc3 checking whether gcc , cc understand -c , -o together... yes checking how run c preprocessor... gcc -e checking g++... g++ checking whether using gnu c++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking ranlib... ranlib checking sed not truncate output... /bin/sed checking ar... /usr/bin/ar checking perl... /usr/bin/perl checking gdb... /usr/bin/gdb checking dependency style of gcc... gcc3 checking diff -u... yes checking 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 supported cpu... ok (x86_64) checking 64-bit build... no checking 32-bit build... no checking supported os... ok (linux-gnu) checking kernel version... unsupported (3.13.0-49-generic) configure: error: valgrind works on kernels 2.4, 2.6
i running ubuntu 14.04 lts
step 3 (configure), didn't complete correctly due missing dependecies/libraries, check output of command.
edit: need newer version of valgrind supports kernel 3.x, @ valgrind-3.10.1
, work.
Comments
Post a Comment