tomaspinho / rtl8821ce

Other
1.58k stars 412 forks source link

build not work on fedora 33(karnel 5.8.15-301.fc33.x86_64) #223

Closed Zel9278 closed 3 years ago

Zel9278 commented 3 years ago

I've installed the relevant ones, but no luck.

[ced@localhost rtl8821ce]$ sudo ./dkms-install.sh
About to run dkms install steps...

Creating symlink /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/source ->
                 /usr/src/rtl8821ce-v5.5.2_34066.20200325

DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.8.15-301.fc33.x86_64 cannot be found at
/lib/modules/5.8.15-301.fc33.x86_64/build or /lib/modules/5.8.15-301.fc33.x86_64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Error! echo
Your kernel headers for kernel 5.8.15-301.fc33.x86_64 cannot be found at
/lib/modules/5.8.15-301.fc33.x86_64/build or /lib/modules/5.8.15-301.fc33.x86_64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Finished running dkms install steps.

I also had this error with other archlinux-based os.

tomaspinho commented 3 years ago

Did you install the kernel headers?

Zel9278 commented 3 years ago

yes

tomaspinho commented 3 years ago

Can you check their actual path in /lib/modules?

Zel9278 commented 3 years ago

Can you check their actual path in /lib/modules?

this Screenshot from 2021-04-20 13-09-30

tduck973564 commented 3 years ago

My friend had this problem, before doing this run ./dkms-remove.sh. My solution was sudo dnf install kernel-devel-$(uname -r) && sudo rm -r /lib/modules/$(uname -r)/build && sudo ln -s /usr/src/kernels/$(uname -r) /lib/modules/$(uname -r)/build. This installs the correct kernel headers for the kernel version you are on, then reinstates the broken symlink to point to the newly-installed headers.

tduck973564 commented 3 years ago

A better solution would be to update the whole system and then build again, because I see that you have a slightly older kernel, indicative of a fresh install.

Zel9278 commented 3 years ago

A better solution would be to update the whole system and then build again, because I see that you have a slightly older kernel, indicative of a fresh install.

thanks! it's working