从 dkms 安装 DIGImend 时出现错误

从 dkms 安装 DIGImend 时出现错误

我最近尝试按照以下方法安装 DIGImend这个视频以便使用 huion h950p 的按键。但当我尝试

sudo make dkms_install

它给了我这个错误:

dkms add .

Creating symlink /var/lib/dkms/digimend/10/source ->
                 /usr/src/digimend-10

DKMS: add completed.
dkms build digimend/10

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.8.0-59-generic KVERSION=5.8.0-59-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/digimend-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-59-generic (x86_64)
Consult /var/lib/dkms/digimend/10/build/make.log for more information.
make: *** [Makefile:74: dkms_modules_install] Error 10

这是 make.log 文件

make[1]: Entering directory '/var/lib/dkms/digimend/10/build'
make -C /lib/modules/5.8.0-59-generic/build SUBDIRS=/var/lib/dkms/digimend/10/build modules
make[2]: Entering directory '/usr/src/linux-headers-5.8.0-59-generic'
  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[4]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[4]: *** Waiting for unfinished jobs....
  YACC    scripts/kconfig/parser.tab.[ch]
/bin/sh: 1: bison: not found
make[4]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab.h] Error 127
make[3]: *** [Makefile:633: syncconfig] Error 2
make[2]: *** [Makefile:738: include/config/auto.conf.cmd] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-59-generic'
make[1]: *** [Makefile:22: modules] Error 2
make[1]: Leaving directory '/var/lib/dkms/digimend/10/build'

我无法解决这个问题。

相关内容