LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-26-2005, 08:59 AM   #1
Skaan
LQ Newbie
 
Registered: May 2005
Location: Belgium
Distribution: Win XP, Debian Sarge, Win 98 SE
Posts: 25

Rep: Reputation: 15
can't get GCC installed


i can't get it installed through the apt-get install gcc command.
it says the following packages have unmet dependencies

depends : cpp ...
depends : gcc-3.3
depends : cpp-3.3

E: broken packages.

So i tried to install it from source. I downloaded the gcc 3.0

then I untarred it
typed ./configure

en gave the following error

=tmp=cNf925.pos : line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the enviroment variable CC to a working compiler

Anyone who has a clue?

thnx!
 
Old 05-26-2005, 10:17 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & FreeBSD
Posts: 488

Rep: Reputation: Disabled
You need the very c compiler you are trying to compile, before you can compile the c compiler you need
So this is obviously not the best approach, you need a pre-compiled version.
I think if you're using Debian that apt-get should be used. But since that isn't working (have you tried resolving the dependencies?), you could maybe try installing Debian gcc packages.
Hope that helps.
 
Old 05-26-2005, 10:21 AM   #3
Skaan
LQ Newbie
 
Registered: May 2005
Location: Belgium
Distribution: Win XP, Debian Sarge, Win 98 SE
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by JunctaJuvant
You need the very c compiler you are trying to compile, before you can compile the c compiler you need
So this is obviously not the best approach, you need a pre-compiled version.
I think if you're using Debian that apt-get should be used. But since that isn't working (have you tried resolving the dependencies?), you could maybe try installing Debian gcc packages.
Hope that helps.
I tried getting the depences by typing apt-get install "insert dependencie here"
but than they said they needed the others one... So it keeps going in a loop in a way

and i inserted the debian Woody disk (i have sarge) added it to my apt-list
then put the other sources.list lines as commentary but still it said it couldn't do it...
any other way?
 
  


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
Installed GCC, but not working rangalo Linux - Software 2 02-02-2005 01:21 PM
Installed gcc, g++ still problemmmmmmmm alirezan1 Linux - Newbie 2 11-24-2004 01:08 AM
What gcc do I have installed? Thaidog Linux - Newbie 2 09-27-2004 08:11 PM
cannot use gcc even though it's installed. levicc00123 Debian 2 09-07-2004 08:48 PM
cc/gcc not installed...and how to install sfingerh Linux - Software 3 07-27-2002 06:56 PM


All times are GMT -5. The time now is 03:59 PM.

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