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 just installed valgrind on my Fedora12 machine.

$ valgrind                       // 1
$ valgrind: Command not found.   //error
$ /usr/local/bin/valgrind        // 2 works fine

My $PATH has /usr/local/bin in it.

Is there something else that I need to do to make 1 work?

share|improve this question
    
Just to check, echo $PATH? – fideli May 18 '10 at 19:51
    
What's wrong with Fedora's valgrind package? – Ignacio Vazquez-Abrams May 18 '10 at 19:54
1  
If you're using Bash, do type -a valgrind. This will show whether an alias or a function is superseding the one(s) found in the path. It will also show if it appears at more than one point in the path. – Dennis Williamson May 18 '10 at 20:05
1  
Did you bother typing yum install valgrind? – Ignacio Vazquez-Abrams May 18 '10 at 20:16
1  
Try echo "'$PATH'"|cat -v or echo "'$PATH'"|hexdump -C to see if there are any odd characters in your path. Also, do other executables in /usr/local/bin work properly? And is there anything about valgrind itself that requires a fully specified path? – Dennis Williamson May 18 '10 at 20:18

it changes depending on your shell. In tcsh, for instance, do:

set path = ($path /usr/local/bin)
share|improve this answer
up vote 0 down vote accepted

It worked after logging out and re-logging in the system.

share|improve this answer

You must log in to answer this question.

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