This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: exe file
- To: Torsten Becker <torstenbeckerni at web dot de>
- Subject: Re: exe file
- From: Rafael Herrera <raffo at neuronet dot pitt dot edu>
- Date: Wed, 06 Jun 2001 01:37:15 -0400
- CC: gcc-help at gcc dot gnu dot org
- References: <200106060521.f565LU824645@mailgate3.cinetic.de>
Torsten Becker wrote:
>
> Normaly, I should get an exe file! But when I start it, I get only, that it couldn't
> found a file. But it's in the dir.. I guess somthing ist wrong with my shell.
> (bash-2.03) Where is the problem? Thanks Torsten
The shell will normally execute executables found in a directory listed
in the PATH environmental variable. So,
$ echo $PATH
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/opt/gnome/bin:/opt/kde2/bin:/opt/kde/bin:.:/opt/gnome/bin
To execute a binary with, say:
$ hello
The entry "." (the current working directory) should be listed, as in
the example above. If it is not, then this should tell bash where the
binary is:
$./hello
--
Rafael