How can I build gcc (gettng 'cc' error)?

 
Thread Tools Search this Thread
Operating Systems Linux SuSE How can I build gcc (gettng 'cc' error)?
# 1  
Old 02-15-2006
How can I build gcc (gettng 'cc' error)?

Hi I have installed Suse Linux 9.3 desktop on my computer. I found out I need to install 'gcc', and I was able to download the source code. I then tried to follow some instructions from WEB search to compile and build gcc, and I am getting the following error:

---
linux:/gcc/gcc-2.95.3 # ../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 --enable-shared --enable-languages=c --enable-threads=posix --host=i586
Created "Makefile" in /gcc/gcc-2.95.3 using "mh-frag" and "mt-frag"
/tmp/cONf14268.pos: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
linux:/gcc/gcc-2.95.3 # which cc
linux:/gcc/gcc-2.95.3 #
---

I searched my entire disk and did not find cc.exe anywhere. So it's not a path issue.

Do I need to install cc.exe from somewhere? Why doesn't Suse Linux 9.3 have this? Any help would be appreciated, as this is blocking me from getting anything done in my Linux coursework.


Thanks,

Patrick//
# 2  
Old 02-18-2006
well first off,unix/linux systems don't generally rely too heavily on file extensions, so the binary for cc would just be called "cc" which itself is usually a symbolc link to an actual binary called "gcc"

Desktop enviroments sometimes use extensions to choose like what kind of icon to display when the content is similar (like when the file is ASCII text it could be a python script, perl script, or a research paper) so very rarely will actual file extensions be sued,a nd even then, usually for other reasons (like ".d" is usually used for directories just in case your terminal doesn't support colors)

that being said, I don't use SuSE that often, I'm more of a gentoo or RH/Fedora man, but I believe YaST is the SuSE setup tool, and if you go in there, you should see where to install the binaries for the compiler.

If there's something wrong with the exact version of the CC (which I doubt if you're new and that's usually an issue when you get to using advanced stuff) then you might be able to locate the RPM (binary installation package) for the version you're needing.

the reason I'm suggesting other things is cause compiling gcc from scratch is kind of a bold move, and it requires a knowledge of how the build process goes and what specifically the gcc build package will assume about your system, terminal, etc and so it's more or less just done A) in a last ditch effort to get a program to compile a feature not available except in a new/unsupported version of gcc, B) you're building your own distro or C) are debugging gcc for submitting fixes to the developers

I think option A is more likely, but I doubt any of the three apply and you should use the binaries that came on the CD's you used to install, as those package have been tested to work well at least in their binary form on the system you're using.

</long-winded-explanation>
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

2. Programming

Build Error

I am facing a problem while building the device driver code. I am using suse linux "2.6.31.5-0.1-desktop" on my Laptop. I have copied a folder containing self written device driver files from Mandriva linux to my system having Suse Linux. I copied the entire folder in "/home/netuser/sun/".... (4 Replies)
Discussion started by: rupeshkp728
4 Replies

3. UNIX for Advanced & Expert Users

GCC 4 error.

Hello, dont know much about C, or gcc, but I am trying to compile a program that built fine in gcc3, but is outputting errors in gcc4, int load_REs(char *, char ); #this line is causing the error DB_Query.h:22: error: array type has incomplete element type any help would be appreciated. (3 Replies)
Discussion started by: mike171562
3 Replies

4. UNIX for Dummies Questions & Answers

Build Error: error: dereferencing pointer to incomplete type

I'm getting the following Error: prepare_pcap.c: In function `prepare_pkts': prepare_pcap.c:127: error: dereferencing pointer to incomplete type prepare_pcap.c:138: error: dereferencing pointer to incomplete type ==================================== This is the part of the relevant... (8 Replies)
Discussion started by: katwala
8 Replies

5. 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

6. UNIX for Advanced & Expert Users

Build and install GCC-3.2.3

Hi, I have problem to build the gcc-3.2.3. I downloaded the source code. Here is what I did. 1) cd /usr/local/src 2) tar zxf gcc-3.2.3.tar.gz 3) cd .. 4) mkdir gcc-3.2.3 5) cd gcc-3.2.3 6) ../src/gcc-3.2.3/configure --prefix=/usr/local/gcc-3.2.3/ 7) make And I received the below... (2 Replies)
Discussion started by: beeloo
2 Replies

7. UNIX for Dummies Questions & Answers

gcc-3.4.4 build on solaris 10 failing please help

I am building gcc-3.4.4 on sol-10 and getting the following error. my configure is going well but failing in the build stage *** checking for windres... windres checking whether to enable maintainer-specific portions of Makefiles... no updating cache ./config.cache creating... (0 Replies)
Discussion started by: mobydick
0 Replies

8. Solaris

build error

dears i working in solaris and when i type make for report it gives me the error kindly can you help me what is the reason -bash-3.00$ make BPSEXT130 make: Warning: File `BPSEXT130.rc' has modification time 12 s in the future make BPSEXT130.c make: Entering directory... (3 Replies)
Discussion started by: murad.jaber
3 Replies

9. Linux

gcc install error

I download a gcc3.0.tar.gz file ,then tar it. Continue,I change current path to gcc3.0 and press ./configure The error appeared ,it is CC command not found . Please tell me What can I do to pass on. (1 Reply)
Discussion started by: fansings
1 Replies

10. Shell Programming and Scripting

Error in gcc

Hi:- I am new for Unix and wants to install gcc compiler on my Linux system. I donwload the file and tried to install it but getting following messaged, # ./configure Configuring for a i686-pc-linux-gnuoldld host. Created "Makefile" in /home/gcc-3.0.1 using "mt-frag" ./configure: cc: command... (6 Replies)
Discussion started by: s_aamir
6 Replies
Login or Register to Ask a Question