hi Peter, Randy and m g
finally get it running. thanks a lot.
why can't the program in the usr directory when I am actually at the
directory. (quite different from DOS and Windows)
how do I view the PATH ?
regards
Thomas
--- In m g <> wrote:
>
> 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 --------------------~-->
Everything you need is one click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/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/
|