Fedora - can't make - "lib/modules/6.14.5-100.fc40.x86_64/build: No such file or directory. Stop."
-3
votes
0
answers
41
views
I'm running Fedora and trying to use make. When I run it, I get the error:
make -C /lib/modules/6.14.5-100.fc40.x86_64/build M=/home/[my_name]/[folder_of_thing]
make: Entering directory '/home/[my_name]/[folder_of_thing]'
make: *** /lib/modules/6.14.5-100.fc40.x86_64/build: No such file or directory. Stop.
make: Leaving directory '/home/[my_name]/[folder_of_thing]'
make: *** [Makefile:5: default] Error 2
As far as I can tell, that build file exists in the /lib/modules/6.14.5-100.fc40.x86_64/ folder.
Please advise! Thank you so much for your help!
Edit: the issue was a broken symbolic link. The solution was to install the missing files: dnf install kernel-devel-6.14.5-100.fc40.x86_64
Hope this helps anyone with this issue. I saw other similar posts, but the exact command was slightly different for Fedora.
Asked by bread
(1 rep)
Jul 10, 2025, 09:43 PM
Last activity: Jul 11, 2025, 04:05 AM
Last activity: Jul 11, 2025, 04:05 AM