LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2010, 09:11 AM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Problem installing valgrind


Hi I am trying ot install valgrind.I am getting the following error.

make install
echo "# This is a generated file, composed of the following suppression rules:" > default.supp
echo "# " exp-ptrcheck.supp xfree-3.supp xfree-4.supp glibc-2.X-drd.supp glibc-2 .34567-NPTL-helgrind.supp glibc-2.3.supp >> default.supp
cat exp-ptrcheck.supp xfree-3.supp xfree-4.supp glibc-2.X-drd.supp glibc-2.34567 -NPTL-helgrind.supp glibc-2.3.supp >> default.supp
make install-recursive
make[1]: Entering directory `/home/gunge/valgrind-3.5.0'
Making install in include
make[2]: Entering directory `/home/gunge/valgrind-3.5.0/include'
make[3]: Entering directory `/home/gunge/valgrind-3.5.0/include'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/valgrind" || mkdir -p -- "/usr/local/include/valgrin d"
mkdir: cannot create directory `/usr/local/include/valgrind': Permission denied
make[3]: *** [install-nobase_pkgincludeHEADERS] Error 1
make[3]: Leaving directory `/home/gunge/valgrind-3.5.0/include'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/gunge/valgrind-3.5.0/include'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/gunge/valgrind-3.5.0'


Can someone help what is exactly the cause for the error.

Ajit
 
Old 03-31-2010, 09:22 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
First of all, we need to know which distro you're running.
 
Old 03-31-2010, 10:52 AM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ajit Gunge View Post
Can someone help what is exactly the cause for the error.
You don't have permission to create a directory in the "/usr/local/include" tree.
Quote:
Originally Posted by Ajit Gunge View Post
mkdir: cannot create directory `/usr/local/include/valgrind': Permission denied
Try running "sudo make install".
 
Old 04-05-2010, 05:50 AM   #4
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
David your suggestion did work for me but its asking for a password which I am not aware of...Thanks for the help
 
Old 04-05-2010, 09:30 AM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ajit Gunge View Post
David your suggestion did work for me but its asking for a password which I am not aware of.
If you are a member of a group in the "/etc/sudoers" list, you should be able to use your user password.
 
Old 04-05-2010, 09:39 AM   #6
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by David1357 View Post
If you are a member of a group in the "/etc/sudoers" list, you should be able to use your user password.
Thanks David but I am not a member of the etc/sudoers list.
 
Old 04-05-2010, 09:40 AM   #7
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Ajit Gunge View Post
Thanks David but I am not a member of the etc/sudoers list.
Is there any other way that I can install valgrind on the server.
 
Old 04-05-2010, 02:24 PM   #8
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ajit Gunge View Post
Is there any other way that I can install valgrind on the server.
When you run "configure", you could set the installation prefix to a directory in your user tree. For example "./configure --prefix=/home/agunge/projects".
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VALGRIND-Query inramana Programming 3 04-13-2010 01:41 AM
Memory problem detected by Valgrind for large array - C programming jbd Programming 3 04-18-2008 11:44 AM
Cannot use valgrind g4j31a5 Programming 1 01-12-2007 05:24 AM
valgrind with C++ yashwantpinge Programming 2 02-16-2006 04:56 PM
Valgrind not included? Zeno McDohl Slackware 1 02-05-2006 04:13 PM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration