Solved

Problem in installing gnu gcc in Linux?

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
understanding an rpm spec file 5 61
what does getent do 3 50
Alphanumeric pager notification on linux (may be script) when BMC Control-M job fails 6 106
Linux Search 3 67
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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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