Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

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

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs. 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. –  Mohsen Pahlevanzadeh 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

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

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