On Mon, May 22, 2006 at 03:43:23AM -0000, thomas wrote:
> hi Peter,
> thanks for your reply.
> I compile the program in the usr directory: gcc -o b.out hello.c
> I use chmod
> when I execute the program I get this error:
>
> bash: /bin/b.out: No such file or directory.
>
> please help
Try running the program like this
$ ./b.out
(note the "./" preceeding the file name)
This tells the shell to look for the application in the current
directory ("."). Normally, the shell uses the PATH environment variable
to search for executables.
Hope this helps,
Mike
------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|