Solved

Problem in installing gnu gcc in Linux?

Posted on 2004-08-11
3
162 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now