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

RE: Can't run programs compiled with GCC



Adding . to your path adds current directory to the path, but is not a good
idea.  Typing in the full path will work, provided that the executable bit
is set for the file, but it is generally easier to just type ./filename or
sh ./filename to run it in the current directory.  It is also safer.  Having
. or current directory in your path can cause all kinds of unfortunate
accidents when you least expect it, due to filenames that are identical.
You meant to run a program in /usr/bin and instead ran the one in the
current directory that you didn't even know existed, etc.

Benny D. Helms
System Administrator
Sheets Unlimited
benny mysticsheets com


-----Original Message-----
From: Charles H. Baker [mailto:cbaker cdc net]
Sent: Friday, October 30, 1998 2:28 PM
To: redhat-install-list redhat com
Subject: Re: Can't run programs compiled with GCC


Try using the full path.  I ran into this problem to.  There is a way to
include your home directory in the path but I can't remember how to do that
just now.

cbaker cdc net
http://www.cdc.net/~cbaker
ICQ: 12589816
-----Original Message-----
From: Max DiOrio <romulus15 ccny com>
To: redhat-install-list redhat com <redhat-install-list redhat com>
Date: Friday, October 30, 1998 5:19 PM
Subject: Can't run programs compiled with GCC


>Hi,
>
>I am fairly new to programming in Linux.  I can successfully compile and
>link the programs I create.  But I cannot run them.  I am assuming that
>I am missing a certain package in RH 5.1.  Anybody have any ideas as to
>what I need to install?
>
>Thanx
>
>Max DiOrio
>romulus15 ccny com
>
>
>--
>  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-install-list-request redhat com with
>                       "unsubscribe" as the Subject.
>
>


-- 
  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-install-list-request redhat com with 
                       "unsubscribe" as the Subject.



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