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 06-13-2005, 09:01 AM   #1
D_funkt
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
installing gcc, howto?


Hello, I am attempting to configure gcc. this is the info I receive. I guess I'm wondering how to set the environment variable CC to a working compiler, but the reason I'm trying to get gcc up and running is because I don't have a working compiler (I don't think anyway...) I'm using ubuntu.



root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 # ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 #
 
Old 06-13-2005, 09:32 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Quote:
Originally posted by D_funkt
Hello, I am attempting to configure gcc. this is the info I receive. I guess I'm wondering how to set the environment variable CC to a working compiler, but the reason I'm trying to get gcc up and running is because I don't have a working compiler (I don't think anyway...) I'm using ubuntu.



root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 # ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 #
Hi!

Welcome to LQ.org. That's not possible. You are trying to compile a compiler without a compiler installed. Heard of the "Chicken or Egg first" tale?. Same thing. These are called chain dependencies. It's possible to work around that, but we will do the easy way.

Open Synaptic, go to search and type gcc. You should figure which package to install from there. Read this and bookmark this link too, you will need it

http://www.ubuntuguide.org/

Good luck!
 
Old 06-13-2005, 12:09 PM   #3
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
apt-get install build-essential with ubuntu cd mounted
 
Old 06-13-2005, 05:09 PM   #4
D_funkt
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Post Thanks

Thanks for the info, I'm sure I'll have many more questions to come. I can only read so many techie papers before I go square-eyed, but I think it's getting easier.
 
  


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
HowTo Install GCC on Red Hat Enterprise 3 ? skate Red Hat 4 02-27-2006 10:11 PM
Installing Gaim...howto kvnband Mandriva 7 09-26-2005 10:55 PM
installing from source HOWTO? Lleb_KCir Linux - Software 13 05-25-2004 04:08 AM
installing packages (howto) skeet Linux - Newbie 1 10-03-2003 05:30 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM

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

All times are GMT -5. The time now is 03:58 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