🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by JJ Tue, 09 Jan 2001 06:46
can't execute a.out....
#1035
Author: JJ
Date: Tue, 09 Jan 2001 06:46
11 lines
1229 bytes
I installed RedHat Linux 6.2 recently. When compiled and tried to execute a
simple C program, I got the following error - "bash: a.out: command not
found."

I compiled my HelloWorld program using gcc as follows: gcc simple.c (no
erros were reported)
Then, I checked a.out attributes, they were -rwxr-xr-x.

What can be wrong? Why doesn't it execute?

Please, help. TIA :)
Re: can't execute a.out....
#1037
Author: nordi
Date: Tue, 09 Jan 2001 16:11
22 lines
1784 bytes
JJ wrote:
> 
> I installed RedHat Linux 6.2 recently. When compiled and tried to execute a
> simple C program, I got the following error - "bash: a.out: command not
> found."
> 
> I compiled my HelloWorld program using gcc as follows: gcc simple.c (no
> erros were reported)
> Then, I checked a.out attributes, they were -rwxr-xr-x.
                  ^^^^^^^^^^^^^^^^^
> 
> What can be wrong? Why doesn't it execute?


I assume that your program is called "a.out". If you
use your system as root user (which you shouldn't)
then you have to add a "./" to execute a program in
the current directory. That's for security reasons.
Just try the command "./mylittleprogram" to start
"mylittleprogram" and maybe it'll work.

nordi
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads