You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
In some of my Fedora computers, when doing
sudo dkms build hid-apple/1.0
I got an error like: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
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 :)
The text was updated successfully, but these errors were encountered: