1

enter image description here

I have basically tried every tutorial out there and still cant run valgrind.

So far....

I installed valgrind from their website to directory 'memcheck'

tar xvf valgrind-3.18.1.tar.bz2

the picture is the outcome of "./configure" ,I cant tell if it was successful or not.

then the command "make" gives: make: *** No targets specified and no makefile found. Stop. and the same for "make install"

this is what i tried to do. How to install valgrind properly?

7
  • Have you checked whether your package manager can install it? Commented Feb 9, 2022 at 9:55
  • it can, but cant do the rest after that Commented Feb 9, 2022 at 9:59
  • Looks like you don't have gcc installed. Assuming you are on Ubuntu, have you tried apt install valgrind? Commented Feb 9, 2022 at 10:03
  • ok what after that? and doesnt ubuntu have gcc already in it? Commented Feb 9, 2022 at 10:04
  • After that you may use Valgrind, if apt succeeded. Check the output of which gcc to find out if you have it. Commented Feb 9, 2022 at 10:06

1 Answer 1

0

If the output from configure contains "configure: error:" then it failed.

Installing with your package manager will be easiest.

Otherwise, you will need

A C compiler (e.g., gcc or clang), always. GNU make, always. Perl, probably always. Sed and awk, always.

Autotools, m4, if regenerating the configure script.

Lots of packages if you want to generate the docs.

A C++ compiler (g++ or clang++) if you want to build and run the regression tests.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, my ubuntu didnt have gcc, g++ or cc.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.