I'm trying to run a program from the command line, and I got a -bash: command: command not found error. What can I do to troubleshoot/fix the problem?
|
|
|||
| show 1 more comment |
migrated from stackoverflow.com Dec 20 '11 at 5:22
closed as not a real question by enzotib, Chris Down, Gilles, Michael Mrozek♦ Dec 22 '11 at 23:40
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
If you
googling the program name + your linux distro usually reveals how to download the program or install it using the package manager
Lot's of ways of doing this, basically you add the directory you to be able to execute files in somewhere in your PATH variable. The closer to the front of the PATH, the sooner bash will find it (thus is you have the same command in 2 different directories in the PATH, the first one usually gets executed). You can add your additions in a number of places (see one of the results in that google search), /etc/profile, or .bash_profile or .bashrc in your home directory if you want it just to apply to you. |
|||
|
|
whichto find programs on your PATH, the possible need to download a program, and/or the ability to permanently add variables to your PATH. – Kevin Burke Dec 20 '11 at 3:20command not founderror. – Kevin Burke Dec 20 '11 at 5:07command, or maybe a command called-bash: command. I know this sounds crazy, but if you type "-bash: command" into bash, then you will get the error message you've have given us. So please, give us all the details we ask for without hesitation. – Aaron McDaid Dec 20 '11 at 5:14