LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2004, 07:01 PM   #1
webguru24
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
bash says "command not found"


Hello,

This has been really frustrating, but I just compiled some code using g++ and everything linked and compiled ok, but when I try to run it, bash just says "command not found". I've checked everything i can think of, recompiled it to .exe left it as .out, but nothing works. I've even switched shells. I'm running Fedora Core 1 if that helps.
 
Old 01-05-2004, 07:06 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Your new command may not be on the PATH. Try giving the complete path to your new command. Also did you make your new command executable?
chmod +x /pathname/command

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-05-2004, 08:32 PM   #3
webguru24
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot jailbait. It wasn't in my PATH.
 
  


Reply



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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
bash: passwd: command not found "HELP" balweg Red Hat 4 05-05-2005 03:47 PM
"bash: run: command not found" ? neuropulse Linux - Newbie 10 04-23-2005 07:58 AM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 11:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:19 AM.

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
Open Source Consulting | Domain Registration