Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having issues building a linux kernel. I downloaded the latest stable copy of the linux kernel from linux.org. I decompressed it successfully and then made a copy to work on. then when I went to configure the kernel, I'm getting a curious error. I've verified the ncurses is installed. I've tried using the root and it still doesn't work.
I use the code:
make menuconfig
I get the error:
HOSTCC scripts/basic/fixdep
/bin/sh: gcc: command not found
scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:439: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2
I am using fedora and am still a relatively new linux user. If anyone can help me with this, I would appreciate it. Thank you.
Why would you take a thread from the Zero Reply List with such a nonsense answer? As a longtime LQ member you clearly should know better.
Anyways, as Rinndalir pointed out, the system is missing the gcc compiler. You could install it using Yum or DNF (depending on which version of Fedora you use), but might still be missing other tools. Easiest way to set up Fedora for development work is to install the "Development Tools" package group, for example on Fedora 22 with
Code:
dnf groups install "Development Tools"
After that your system should be set up to go on further with your kernel experiments. Keep in mind that it is strongly discouraged by the kernel developers to compile the kernel as root, do it as regular user.
No, I shouldn't, since I don't even know what you mean with M. Nonetheless, as a long time member you know the rules and have to abide to them. To not derail this thread, please contact me via PM or email if you want to discuss this any further.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.