Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was reading Learn C the Hard Way when I stumbled upon and followed the instructions for installing Valgrind, the C debugger. However, when I ran ./configure to setup build configurations, I got

checking for the kernel version... unsupported (3.0.0-17-generic)
configure: error: Valgrind works on kernels 2.4, 2.6

I am running Ubuntu 11.10, on the kernel Linux 3.0.0-17-generic x86_64.

The answer may be obvious but I'm not acquainted with Linux: How do I get Valgrind working on my computer? Thanks.

share|improve this question
I came here from LCTHW too :) – Skynet Mar 24 '14 at 6:03
up vote 7 down vote accepted

Valgrind is installable from repository(tested on 12.04 running kernel 3.2.x). sudo apt-get install valgrind. Also available in 11.10 according to this.

Just an additional note, it's not a debugger. It's a memory fault detector.

share|improve this answer
I got it working, thanks. – LonelyWebCrawler Apr 7 '12 at 17:08


"You could install Valgrind with the package manager for your OS, but I want you to learn to install things from source"

Try a newer version of Valgrind, e.g. 3.10.1

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.