Here are a few simple methods that should help you solve the kernel makefile not found problem.
Approved: Fortect
Solution And Note For Gentoo Newbies
Do You Know Your Kernel Version
First check the kernel version associated with the following command:
1. uname-a
2. ls -l /usr/src/
A symbolic link between the linux
directory gives you news about the kernel version
Save The .config
file.
Change to the Linux system directory by typing cd /usr/src/linux
at the command line.
Then copy the cp configuration file /test usr/src/ Linux/.config ~ /myconfig
Find Source Makefile At Local Port
Look at your /var/db/pkg/sys-kernel/
, it might be a directory for someone’s kernel. When is the version? yes, /usr/src/linux/
does so often after copying the Makefile! If not, go to the next step.
Load The Missing Kernel Port Using Didn’t Appear
I find near the original Linux kernel source that carries the local db port, so I resurrect it. Type sudo emerge sys-kernel/gentoo-source:x.xx.Type,xx
to get the source code. .The loaded .source will get ./usr/src/
.. In my case, the Makefile loaded with . Solve the problem. You can also create the old configuration
ifthis is what most people want.
Or Upgrade Core
If there is an additional stable kernel version, you can also update it to fix the problem. For more information see the Gentoo Upgrade kernel:.I wiki
What I Learned
As a newbie to gentoo, I find Get emerge
very similar to apt install
. So I figured if I delay the system update with –with-bdeps emerge P -avudn --keep-going world
the kernel will still be updated. But no. You must manually compile it in the same way as installing the corresponding system. (Though you can use make oldconfig
for the time)
For the sake of economy, I accepted the suggestion to ungroup the small kernel when running the emerge -audio-video --depclean
source code. I just thought maybe it was updated.
# My Unmerge… emerge log:
=== (sys-kernel/gentoo-sources-4.14.65)
>>> unmerge Success: sys-kernel/gentoo-sources-4.14.65 < /prev>I'm just getting started programming kernel modules and have a busy schedule to get the makefile to build the c files correctly. My name isManjaro, and I use 5. I have 4
if
create
in above directory as code and makefile:obj-m which is Hello1 +=.oPATH = /usr/lib/modules/$(shell uname -r)/buildEvery: $(MAKE) -C M=$(pwd) $(path) modulesclean: $(MAKE) -C M=$(pwd) $(path) clear
Approved: Fortect
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
1. Download Fortect and install it on your computer 2. Launch the program and click "Scan" 3. Click "Repair" to fix any issues that are found make -C /usr/lib/modules/5.4.67-1-MANJARO/build M=/home/aidan/Documents/kernelProgramming/hw2 modulemake: make: No such or file directorymake: *** [makefile:7: All] -Qs Error 127
pacman "^linux"local/cpupower 5.7-1 (linux tools) A Linux kernel tool for comparing, contrasting, and optimizing your CPU's power-saving features.local/efibootmgr 17-2 Change application from linux userspace to boot manager 1 efilocal/flat.8.1-1 Linux Plan Sandboxing and Framework Distribution Xdg-app)Local/iptables 1:1 (formerly .8.5-2 (with legacy interface 1 linux-kernel-package-management-tool)local/keyutils.6.3-1 Basic administration utilities for Linuxlocale/cmd 27-2 And a library of methods for managing Linux kernel modules.local/ladspa 1.15-2 Simple Linux Plugin Audio Developer API (LADSPA)local/lib32-keyutils 1.6.3-1 Linux Utilities (32 for bits)Local/liberated key management 0.7-2 native bibleio_uring io_uring io access edema for linuxlocal/linux-api-header 5.8-1 Basic headings for pure space user useLocal/linux firmware 20200923.r1716. afbfb5f-1 Linux firmware files (Manjaro Overlay 1:5 package)local/linux-lts-headers. 4-3 Header files and scripts for the latest LTS kernel development modules (metapackage)local/linux54 5.4. 67-1 Linux54 kernels & modulesheader local/linux54 5.4.67-1 Header files, scripts and assembly modules on the Linux54 1:0 kernellocal/lir.10.1-6 Infrared Remote Linux Utilitieslocal/reference controls page 5.08-1 Linux man pagesLocal/python distribution 1.5.0-1 API for getting information about Linux OS platformlocal/tlp 1.3.1-2 Advanced Linux Power Management
Speed up your computer's performance now with this simple download.