Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
2  
I came here from LCTHW too :) –  Skynet Mar 24 at 6:03

1 Answer 1

up vote 6 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

Your Answer

 
discard

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.