[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] help on setting up C



Hi Rajil,

 	Check if ./a.out(and not a.out) works well.
If that is not the problem, change the path variable.
bash$ export PATH=$PATH:.:
and further check the permissions of ur a.out file.
If there is no execute permission 
bash$ chmod +x <file name>
now run ur program
bash$ ./a.out

regards,
vivek.

------------------------------------------------------------------------------
vivek,  			,-`-|____\---,
IIIT-HYDERABAD.        		`-(*)-----(*)'
vivek@xxxxxxxx		"My Hardware runs better without windows"
		A problem is an opportunity in work clothes.
						-Henry J. Kaiser
------------------------------------------------------------------------------


> | hi all,
> |  i have installed redhat 6.1 from pcq cd but unable to run the c progam.
> when i use cc it produces the a.out file. but typing a.out gives out the
> error about not an executable file. do i have to set up a link or something
> to get this going.
> |                              thanks
> |                                      Rajil

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.