Solved

Problem in installing gnu gcc in Linux?

Posted on 2004-08-11
3
160 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

16 Experts available now in Live!

Get 1:1 Help Now