LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to load and configure gcc? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-load-and-configure-gcc-415569/)

pat_and_cami 02-15-2006 12:56 AM

How to load and configure gcc?
 
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//:scratch:

croakinglizard 02-15-2006 01:14 AM

You should use Yast to install gcc if it isn't already installed.


All times are GMT -5. The time now is 11:53 AM.