Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel headers not found in Fedora #55

Closed
jbriales opened this issue Dec 21, 2019 · 2 comments
Closed

Kernel headers not found in Fedora #55

jbriales opened this issue Dec 21, 2019 · 2 comments
Labels
info Useful information

Comments

@jbriales
Copy link

jbriales commented Dec 21, 2019

In some of my Fedora computers, when doing sudo dkms build hid-apple/1.0 I got an error like:

Error! echo
Your kernel headers for kernel 5.2.11-200.fc30.x86_64 cannot be found at
/lib/modules/5.2.11-200.fc30.x86_64/build or /lib/modules/5.2.11-200.fc30.x86_64/source.

Eventually I figured out the issue:
You have to install the kernel-devel package for your specific kernel, like sudo dnf install kernel-devel-$(uname -r).
However apparently not all kernel-devel versions are available through the package repository.
So if you get an error like

No match for argument: kernel-devel-5.3.13-200.fc30.x86_64
Error: Unable to find a match: kernel-devel-5.3.13-200.fc30.x86_64

upon trying to install kernel-devel-$(uname -r) as above,
download concrete kernel-devel package from web https://kojipkgs.fedoraproject.org/packages/kernel/
This can be done directly from URL,
e.g. sudo dnf install https://kojipkgs.fedoraproject.org//packages/kernel/4.17.9/200.fc28/x86_64/kernel-devel-4.17.9-200.fc28.x86_64.rpm

Sharing here in case it helps someone else, as it took me a lot of attempts and reading to finally come into this really simple solution :)

@free5lot
Copy link
Owner

Thank you for information. I will consider adding it to readme (description) during holidays.

@free5lot free5lot added the info Useful information label Dec 22, 2019
@free5lot
Copy link
Owner

The issue will be closed as it's not related to hid-apple itself, but will stay available for further comments and discussions if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info Useful information
Projects
None yet
Development

No branches or pull requests

2 participants