LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-14-2004, 05:08 AM   #1
UltimatePower
Member
 
Registered: Jul 2004
Posts: 31

Rep: Reputation: 15
Mandrake and GCC


System OS: Mandrake 10.0
hi, i'm trying to install gcc on mandrake but:
it says:
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/hans/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 CC to a working compiler.

Please help me with this critcal thing
 
Old 08-14-2004, 11:45 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"*** The command 'cc -o conftest -g conftest.c' failed."

cc is an alias for gcc. Use the which command to find your gcc:
which gcc
and then crate cc as an alias for gcc. On my machine gcc is in /usr/bin so I would create cc as an alias for gcc with:

ln -s gcc /usr/bin/cc


If you are in the situation that you do not already have gcc installed then you cannot use gcc to compile gcc. In that case you will have to install a binary rpm of gcc.

------------------------
Steve Stites
 
Old 08-14-2004, 04:58 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
If you need to install gcc, do it from RPM. You need gcc to compile gcc from source.
 
Old 08-14-2004, 05:53 PM   #4
bcf2
Member
 
Registered: Nov 2003
Location: Nowhere and somewhere
Distribution: Mandrake 10
Posts: 124

Rep: Reputation: 15
dosen't 10 come with gcc?
 
  


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
Mandrake 10.1 with gcc but without g++ borgnasse Mandriva 7 10-12-2004 04:15 AM
Can't find GCC on Mandrake 9.1 lordshipmayhem Mandriva 46 04-03-2004 02:56 AM
I cannot use gcc 3.2-1 in mandrake 9.0!!!! pradeepmenon777 Mandriva 2 02-18-2004 09:23 AM
Problem with GCC in Mandrake 9.1 anulinuxusr Programming 3 11-18-2003 07:07 PM
Mandrake 7.2 gcc problems Chypmunk Linux - Software 3 01-31-2002 05:46 PM


All times are GMT -5. The time now is 12:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration