[98274] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Running a C program

daemon@ATHENA.MIT.EDU (Frank N. Stein)
Sat Nov 7 21:55:27 1998

From: "Frank N. Stein" <kcsmart@microlink.net>
To: redhat-list@redhat.com
Date: Sat, 7 Nov 1998 20:52:54 -0600
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Sat, 07 Nov 1998, Ronnie Thum sniveled:
>Hi,
>
>Whenever I run a C program compiled in GCC ver 2.7.2.3, I need to type
>'./programname'. 
>Why can't I just type 'programname' ?
>Is there any settings I need to change ?

The PATH= statement in /etc/profile or $HOME/.bash_profile will fix it
(/etc/profile for all accounts, $HOME/.bash_profile for individual
users).

--
I distinctly remember forgetting that.

 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post