Solved

Problem in installing gnu gcc in Linux?

Posted on 2004-08-11
3
169 Views
Last Modified: 2010-04-22
First of all I untarred gcc-3.3.tar file in / directory.Then "CD gcc-3.3" and in this directory when I executed configure file using ./configure the following appeared...
      Configuring for a i686-pc-linux-gnuoldld host.
   Created "Makefile in /gcc-3.3 using "mt-frag"
   ./configure: line 8: cc: command not found
 ***The command 'cc -o conftest -g conftest.c' failed.
 ***You must set the environment variable to a working compiler.

So please what should I do? My linux OS is DamnSmallLinux.Only after this configure is succeeded I have to proceed with doing "make bootstrap" right?
0
Comment
Question by:gopikrish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 11778500
In order to be able to build a copy of Gcc you must have a working C compiler of the system where you'll do the build.  And from the configure output that's apparently not the case (cc -o conftest -g conftest.c' failed.). Your choices are to either find a pre-built Gcc that you can install, or build a copy of Gcc on some other Linux system and it the result onto your target system. The latter may require you to set up a chrooted enviornment for the build that matches the target environment.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question