The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i check in csh if command found or not found ? umen Shell Programming and Scripting 2 03-03-2007 04:38 PM
no VGs found b_manu78 AIX 3 10-11-2005 02:13 AM
ksh: cvs: not found ?? rein UNIX for Advanced & Expert Users 2 01-05-2005 02:01 AM
MAC not found? merlin UNIX for Dummies Questions & Answers 1 05-15-2003 06:34 AM
HELP ld.so.1 NOT FOUND SmartJuniorUnix UNIX for Dummies Questions & Answers 1 10-04-2000 12:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-25-2005
Registered User
 

Join Date: Feb 2005
Posts: 10
cc and gcc not found

I am trying to compile c files using cc and gcc commands but getting errors cc and gcc not found. I tried man cc and man gcc still not found.
Can somebody help me this problem.

thanks
Reply With Quote
Forum Sponsor
  #2  
Old 02-25-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
try finding the location of 'cc' and 'gcc' and append the location to your PATH

find / -name "cc" 2>/dev/null
find / -name "gcc" 2>/dev/null

give you where cc and gcc exist.


export PATH=$PATH:locationofcc:locationofgcc
Reply With Quote
  #3  
Old 02-26-2005
Registered User
 

Join Date: Feb 2005
Posts: 10
c compiler

I tried that nothing displayed. How can I be positive that a compiler is installed on my machine. Is it optional to have a c compiler when installing SCO OpenServer(TM)?



Quote:
Originally Posted by bhargav
try finding the location of 'cc' and 'gcc' and append the location to your PATH

find / -name "cc" 2>/dev/null
find / -name "gcc" 2>/dev/null

give you where cc and gcc exist.

thanks





export PATH=$PATH:locationofcc:locationofgcc
Reply With Quote
  #4  
Old 02-26-2005
Registered User
 

Join Date: May 2002
Posts: 12
Looks like you don't have a compiler. Not sure on your SCO question but gcc is available for free.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0