Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Hi,

Suppose I get a Kernel source code and try to compile it on Linux which is not having gcc compiler then it will not get compiled for sure b'coz kernel needs gcc for compilation. My question is then how a Linux gets installed on raw hard disk which in not having gcc pre-installed. I also believe gcc can't be installed on raw hard disk (not sure and never tried). So, it is also not the case that Linux installs gcc first and then do the rest later.

Can any one explain how the thing works from lower level point of view.

asked 15 Apr '10, 04:37

Anonymous's gravatar image

Anonymous
3113
accept rate: 0%

edited 15 Apr '10, 09:36

Web31337's gravatar image

Web31337
317111

Please accept an answer so the question/answer can be finished.

(20 Apr '11, 13:42) rfelsburg ♦



« previous12

For the newbies who come here, thinking this was actually a question on how to install Linux, go check out the following versions of Linux:

Knoppix

Mint-ubuntu

Both will autoinstall, autodetect and configure all your hardware. Bliss.

link

answered 17 Apr '10, 12:44

Timmi's gravatar image

Timmi
862
accept rate: 50%

what is your linux platform ???

link

answered 22 Apr '10, 07:20

Network%20Systems%20Engineer's gravatar image

Network Syst...
2415
accept rate: 16%

Er...

Actually, the Linux kernel doesn't really need GCC specifically. Not anymore. These days there are plenty of compilers avalable.

And you don't even need GCC specifically to build anything on Linux.

As for which came first, GCC did, although it is frequently debated about its quality before Linux came along. That, of course, is not a subject for this web site.

I think it'd serve well to point out that almost everything in the GNU toolchain has a comparable non-GNU Free/Open Source replacement available. GCC is replaced commonly with EGCS, for example, and HAS replaced GCC as the default in systems such as Debian.

link

answered 03 May '10, 16:52

Yaro%20Kasear's gravatar image

Yaro Kasear
4914
accept rate: 0%

As per my understanding of Linux installation on any hard drive is very easy. If we see the installation process carefully then we'll find that installation comes into two phases. First phase of installation provides one pre compiled kernel and initial ramdisk. Ramdisk contains all those module necessary to work with file system and kernel starts booting process and the second stage provides all the softwares to be installed as part of OS. If we are using CD/DVD rom then we can easily see precompiled kernel and ramdisk under images folder in the installtion CD/DVD. If we are using PXE boot then we first provide these two through tftp server. I hope this is a logical answer.

link

answered 03 May '10, 17:25

Shashi%20Ranjan's gravatar image

Shashi Ranjan
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×90
×10
×4
×3
×2

Asked: 15 Apr '10, 04:37

Seen: 5,005 times

Last updated: 20 Apr '11, 13:42

powered by OSQA