Open dtgriscom opened 4 years ago
I've fallen into this Catch-22 myself a few times. Always had to remove the flubbed original try at the dkms install before being successful.
Try sudo make dkms -i
The -i flag will ignore the file exists error
Telling make to ignore all errors wouldn't feel safe to me as an end-user; it would be far better to have the Makefile itself be more robust.
Given that the directory name is built using git describe --long --always
, there's virtually no chance that automatically deleting the directory would cause harm, right?
I see your point. But it was just a suggestion.
So, the commands:
To make the module
sudo make dkms
To clean the build directory
sudo make clean
To uninstall the module
sudo make dkms_clean
I will add a check to the makefile to ensure DKMS is installed.
I'm using Ubuntu 18.04.4. I cloned this repository, and tried
sudo make dkms
But, got an error:
I installed
dkms
, and then tried to make this again, but got a different error:So, the first failed make had created the directory, but subsequent makes fail if the directory exists. I tried
make clean
, but it didn't remove the created directory. I finally hand-deleted the directory, and thesudo make dkms
got a lot further (it ended up failing, but that'll be a different report).Suggestions:
sudo make clean
remove the source directorydkms
(and other prerequisites?) before creating the source directory