[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: My binaries won't run



> Is it possible that the current directory isn't in your PATH.
> Try 
> 
> $ ./mytest
> 
> You can see the search path with
> 
> $ echo $PATH
> 
> and add current dir to it with
> 
> $ export PATH=$PATH:.
> 
Even better, add ~/bin to your PATH and make sure newly compiled programs
are stored in ~/bin.
Having "." in PATH is a security risk on multiuser systems.  It is sort
of ok on a single-user home-machine, but why get a bad habit?  You
may find yourself administrating a company machine someday...

Helge Hafting



Reply to: