I have successfully built the Linux Kernel 3.13.6 and ran it in QEMU. Since it is just the kernel, it will eventually complain that it cannot find init or sh, etc.

Therefore, it is necessary to build the GNU utilities for Linux (which makes it GNU/Linux). However, how would someone do that? How do you build the utilities for Linux?

Is it as simple as downloading & compiling w/ GCC and then copying onto a formatted disk?

closed as too broad by strugee, Braiam, slm, jasonwryan, Anthon Mar 15 '14 at 6:20

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    linuxfromscratch.org – strugee Mar 15 '14 at 0:32
  • What do you do ? LFS? LFS is very hard, why LFS? you can remaster from a powerful distro such as debian. – PersianGulf Mar 15 '14 at 2:04
  • Sorry, but if you build the GNU part of "GNU/Linux" you are still very, very far from having a working system (GNU software proper is just a small fraction of a working Linux system). – vonbrand Mar 15 '14 at 17:49

Most of the very basic UNIX commands are part of GNU coreutils if that's what you mean, like ls, mv, etc.

How do you build the utilities for Linux?

Like you build anything else under Linux. Download the source, read the instructions the developer has provided, and follow them - typically involving making sure you have the prerequisites such as libraries, etc. available, changing to the source directory, maybe running a configure script, and then issuing a make command or two.

In coreutils case, you want to read and follow this.

Not the answer you're looking for? Browse other questions tagged or ask your own question.