Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Command not found

Options
  • 29-05-2005 12:10am
    #1
    Closed Accounts Posts: 680 ✭✭✭


    I'm running a Gcc/Cygwin application on my desktop(XP Home SP2) at home, and it compiles and runs fine. However, when i installed the necessary software on my laptop (XP Pro), i compiled the files using gcc, and then went to run them.

    i got this back

    $ basic

    bash: basic: command not found

    The executable (basic.exe) is there in the directory, it compiles okay and runs on other computers, but for some reason my laptop can't see it. Its the same for all my .c and .exe files. This is very frustrating! :mad:

    Any Linux or Gcc people know what the problem is?


Comments

  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    Check your $PATH. Does it have "." in the path?

    Try typing ./basic


  • Registered Users Posts: 1,865 ✭✭✭Syth


    .c files shouldn't run.
    Unlike DOS in bash you'll have to put in the .exe, so try like Hobbes suggested ./basic.exe. Does the file have executable permission?


  • Closed Accounts Posts: 680 ✭✭✭Amaru


    Yeah, hobbes was right, i needed ./ before my command. Cheers hobbes.


Advertisement