Super User is a question and answer site for computer enthusiasts and power users. 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'm trying to install valgrind, but the installation failed.

This is what I did:

#tar jxvf valgrind−3.7.0.tar.bz2
#cd valgrind−3.7.0
#make install

Here it says

/usr/local/include/valgrind Permission denied.

#sudo apt-get install valgrind-3.7.0

Here it says unable to locate package valgrind-3.7.0

Someone please help me on this

share|improve this question
up vote 2 down vote accepted

Typically that last part needs to be done as root:

sudo make install

And to try apt-get instead of compiling source, leave off the version:

sudo apt-get install valgrind
share|improve this answer
ok now I deleted the whole folder and run the whole thing again this time: #./configure #sudo make #sudo make install #sudo apt-get install valgrind still say unable to locate package i tried sudo apt-get install v[press tab], it showed me these: vbetool, vim-common, vim-tiny, vinagre, vino – ubuntuHelp Mar 7 '12 at 6:46
sorry my comment is all in one line, I dont know how to put new line – ubuntuHelp Mar 7 '12 at 6:47
@ubuntuHelp stick to apt-get or compile from source, preferably use apt-get. Please edit the question & add the full error message you're getting – Sathya Mar 7 '12 at 6:56
sorry I am really new to ubuntu and linux, I don't know what compile from source means. Are you referring to make install? – ubuntuHelp Mar 7 '12 at 7:02
@ubuntuHelp -- yes, the "configure; make; make install" steps are for compiling from source, which you have downloaded as valgrind−3.7.0.tar.bz2. The preferable alternative is to install by package using apt-get, when the package is available. What version of Ubuntu do you have? Mine (10.04.3 LTS) can run "sudo apt-get install valgrind" just fine. – Lars Rohrbach Mar 7 '12 at 7:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .