LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2002, 09:31 PM   #1
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Rep: Reputation: 30
Angry Why For this no work


Ok i have Red Hat 7.2 and it uses a compiler that needs to be set to gcc 2.95.x . So i extract it then i did.
./configure then i got this is what i got
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /home/angomeka/gcc-2.95.3
./configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed
*** You must set the environment variable CC to a working compiler.

So how do i fix this guys?
 
Old 02-20-2002, 10:36 PM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
OK, so you probably don't have cc installed. I think you just need to do
Code:
export CC=gcc   for Bash
or
setenv CC gcc   for csh
That might not be it exactly, but it's something like that.

Last edited by DMR; 02-20-2002 at 10:38 PM.
 
Old 02-21-2002, 06:02 AM   #3
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DMR
OK, so you probably don't have cc installed. I think you just need to do
Code:
export CC=gcc   for Bash
or
setenv CC gcc   for csh
That might not be it exactly, but it's something like that.
i tried it and it didnt work
 
Old 02-21-2002, 08:19 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you do have cc running on your system, try "./configure --cc=/where/oh/where/is/cc" or whatever

you should also be able to use an older rpm for gcc from rpmfind.net
 
Old 02-21-2002, 12:11 PM   #5
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Original Poster
Rep: Reputation: 30
thanks for the tip. I was wondering if there was a RPM finder.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 10:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration