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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Command not found

  • 28-05-2005 11:10pm
    #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, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


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

    Try typing ./basic


  • Registered Users, Registered Users 2 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