cc and gcc not found


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cc and gcc not found
# 1  
Old 02-26-2005
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
# 2  
Old 02-26-2005
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
# 3  
Old 02-26-2005
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
# 4  
Old 02-26-2005
Looks like you don't have a compiler. Not sure on your SCO question but gcc is available for free.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Help with gcc programming

I need a lot of help with c programming. I have the source code. Running configure, I got one error message about a missing library. I downloaded and successfully compiled it in another dir. Do I throw all the new files into my source dir and run configure again ? Thanks. (3 Replies)
Discussion started by: drew77
3 Replies

2. UNIX for Advanced & Expert Users

Compiling libcdio-paranoia, gcc found - C compiler doesnt work

Heyas I'm currently trying to make a fresh build from scratch/source of FFMPEG. This said, it brings quite a tail with it, so the use of a script was very obvious. Anyway, i'm currently stuck at named package. Lets ignore the tarball/download line, as the error is after. Commands... (0 Replies)
Discussion started by: sea
0 Replies

3. Shell Programming and Scripting

If first pattern is found, look for second pattern. If second pattern not found, delete line

I had a spot of trouble coming up with a title, hopefully you'll understand once you read my problem... :) I have the output of an ldapsearch that looks like this: dn: cn=sam,ou=company,o=com uidNumber: 7174 gidNumber: 49563 homeDirectory: /home/sam loginshell: /bin/bash uid: sam... (2 Replies)
Discussion started by: samgoober
2 Replies

4. Programming

curses.h not found , gtk/gtk.h not found

i have downloaded <libncurses5-dev_5.7+20101128-1_i386.deb> and <ndk++-0.0.1alpha4.tar.bz2> which contains the header files curses.h and gtk/gtk.h .. i have also included them using .. #include "/home/ball/Desktop/Sudoku/project/libncurses5-dev_5.7+20101128-1_i386/usr/include/curses.h" ... (2 Replies)
Discussion started by: upvan111
2 Replies

5. UNIX for Dummies Questions & Answers

gcc man pages not found under Solaris 10

Hi friends, When I try to see the man pages of gcc, man gcc I see No manual entry for gcc. Could you help me please. I am running solaris 10 Thanks! (4 Replies)
Discussion started by: gabam
4 Replies

6. UNIX for Dummies Questions & Answers

Help with gcc and g++

Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies

7. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

8. AIX

gcc with AIX 4.3

hi, i need to install a source code from an open source on AIX 4.3. but first i need to install gcc. is gcc going to screw up AIX 4.3? the box is doing heavy legacy stuff with engine and db2 on it. and over 200 users. any comment would be appreciated. thanks (9 Replies)
Discussion started by: itik
9 Replies

9. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

10. Programming

Gcc

Dear all, Any body please guide, i require a C which will run in Linux environment. Its urgent please. warm regards, Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies
Login or Register to Ask a Question