LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2008, 07:00 PM   #1
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Rep: Reputation: 15
Initial gcc installation-How to compile gcc itself


I installed Debian and am trying to complile some software on it. However I don't have
gcc or any other c compiler installed. Can't compile gcc source code itself for the
same reason. Which raises a question of how to do the initial install of a first compiler
on a system. Do I have to find a precompiled debian package and install it this way?

thanks
 
Old 02-26-2008, 07:06 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Quote:
Originally Posted by pgb205 View Post

I installed Debian and am trying to complile some software on it. However I don't have gcc or any other c compiler installed. Can't compile gcc source code itself for the same reason. Which raises a question of how to do the initial install of a first compiler on a system. Do I have to find a precompiled debian package and install it this way?
Yes, you will find it on your install CD.

-------------------
Steve Stites
 
Old 02-26-2008, 07:15 PM   #3
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
thanks. but lets say i didn't have access to precompiled gcc. How would i bootstrap the gcc compiler?
 
Old 02-26-2008, 08:55 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
It's obvious that you need a c compiler to compile a c compiler written in c. You either need a different version of c, or obtain the version you want (and the library) in a precompiled package. You could compile or cross-compile the source on another machine. The very first C compiler was probably written in a high level language.

This begs the question, how did the first person catch a cold?
 
Old 02-26-2008, 10:24 PM   #5
cizzi
Member
 
Registered: Jun 2001
Distribution: Gentoo
Posts: 153

Rep: Reputation: 19
Whats wrong with "apt-get install build-essential" from the etch installation?
 
  


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
Compile GCC 2.9 using GCC 3.x kassle Linux - Software 3 11-27-2006 09:37 PM
Compile with GCC occ Solaris / OpenSolaris 6 10-29-2004 10:19 AM
gcc can't compile noir911 Programming 1 09-25-2004 10:35 AM
gcc 3.4.1 want not to compile, but 3.2.2 does BorisB Linux - Software 3 07-27-2004 06:53 PM
How to compile GCC if you don't have GCC? khermans Linux - Software 13 05-12-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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