LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-28-2006, 02:11 PM   #1
my_kappa
LQ Newbie
 
Registered: Jan 2006
Location: Kiel, Baltic Sea, Germany
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Compiling gcc without any gcc installed


Anyone got an idea how to compile a gcc from scratch without having any gcc/other C-Compiler installed? I've heard that I have to use some unoptimized-precompiled binary to compile the real compiler, but I have no idea where to get such a thing.

I am looking forward to your replies!
 
Old 01-28-2006, 02:39 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,540

Rep: Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878
By your profile you have Debian, so you should be able to do:
apt-get install gcc
I believe you'll also need make to compile a standard source tarball:
apt-get install make

Although it's generally easier to just apt-get install rather than compiling...
 
Old 01-29-2006, 04:52 AM   #3
my_kappa
LQ Newbie
 
Registered: Jan 2006
Location: Kiel, Baltic Sea, Germany
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, sure, I would do so if I had Debian installed on the machine I wish to have gcc on. But on that machine is a very plain Linux, since it is only a 386 w/ 4mb of RAM.
 
Old 01-29-2006, 10:13 AM   #4
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
Quote:
Originally Posted by my_kappa
Yeah, sure, I would do so if I had Debian installed on the machine I wish to have gcc on. But on that machine is a very plain Linux, since it is only a 386 w/ 4mb of RAM.
very simple, you just use a live CD like Knoppix
But I'm not still try about this so it may be wrong
 
Old 01-30-2006, 12:17 AM   #5
my_kappa
LQ Newbie
 
Registered: Jan 2006
Location: Kiel, Baltic Sea, Germany
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Hm, lauching Knoppix would be difficult since there is no CD-ROM drive.
 
Old 01-30-2006, 01:15 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,156

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Also, Knoppix wouldn't run on such an old machine (particularly since it caches a lot in RAM -- I doubt you could even start the kernel with 4 MB).

In fact, I'm not sure if gcc is evcen going to run with anything approaching tolerable speed on a machine that old. But if you want to try there are a number of sites with gcc binaries available. What distro of Linux is on your system (or is it LFS)? If it's from scratch, you will probably just have to find a generic binary (or use a distro's binary), otherwise use the gcc packaged with your distro.
 
  


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
can't get GCC installed Skaan Linux - Newbie 2 05-26-2005 11:21 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
What gcc do I have installed? Thaidog Linux - Newbie 2 09-27-2004 09:11 PM
cannot use gcc even though it's installed. levicc00123 Debian 2 09-07-2004 09:48 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM


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