In 5.2 . isn't in your path as default.  This is a nice little securty
measure but it does mean that you have to type ./a.out.  Also check to see
if it has execute permission and run file on it to see if it is and
executable file.

> Hi everybody,
>       I also upgraded my RedHat from version 5.0 to version 5.2 some days
> ago.
> After this mail I tried to compile my c programs.The program has been
> compiled
> but the executable is not running.
> Suppose if a.out is the executable then on typing a.out I get the message:
> bash: a.out :command not found.
> Any help?
> Thanks.
> -----Original Message-----
> From: Ivan Eyara [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 30, 1999 2:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: RedHat upgrade
> 
> 
> Hello everybody,
> 
> I upgraded my RedHat from version 5.0 to version 5.2 some days ago.
> Everything seemed to be going fine but yesteday I found the problem.
> 
> I can't compile, link and run a application written in C that worked
> correctly in the previous version. This is the log:
> 
> 1) First time I tried to compile and link it after a few changes in its
> code I got the link error: undefined reference to the function fmod().
> This functions is called from a module I had not changed for months.
> 
> 2) I changed the Makefile and compiled the application with -lm in order
> to link libm library and the compilation/link was ok.
> 
> 3) When I run this version I got a segmentation fault that I had never
> got.
> 
> 4) I thought that the problem could be in the new changes and after a
> long time looking for the problem I decided to restore a previous
> backup. This backups contains the original code and the orirginal
> Makefile.
> 
> 5) I tried to compile and link again and I got the same link error:
> undefined reference to the function fmod().
> 
> 6) I decided to compile and link this version in a RedHat 5.0 box and
> the result is ok.
> 
> Any help?
> 
> Please, reply to my address. I'm not a member of the list.
> Thanks in advance,
> -- 
> Ivan Eyara                 [EMAIL PROTECTED]
> Software development
> ZUNIBAL,S.L.         http://www.zunibal.com
> -====---====---====---====---====---====---====---====---====---====---====-
>  to unsubscribe email "unsubscribe linux-admin" to
> [EMAIL PROTECTED]
>  See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/
> -====---====---====---====---====---====---====---====---====---====---====-
>  to unsubscribe email "unsubscribe linux-admin" to [EMAIL PROTECTED]
>  See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/
> 

Reply via email to