欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

字符驱动设备踩坑

程序员文章站 2024-03-30 20:50:27
1.编译源码出现:ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. WARNING: Symbol version dump /root/linux-3......

1.编译源码出现:

ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /root/linux-3.5.0/Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
/root/linux-3.5.0/scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
make[2]: *** No rule to make target `include/config/auto.conf'.  Stop.
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/linux-3.5.0'
make: *** [default] Error 2

解决方案:进入源码目录中执行以下语句

make oldconfig && make prepare

执行完后又出现了错误: linux-内核导入配置 lexer.lex.c错误

解决方法:

sudo apt-get install bison
sudo apt-get install flex

然后又出现错误: fatal error: openssl/opensslv.h: No such file or directory

解决方法:

sudo apt-get install libssl-dev

嗯,又有错误。。。。:Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" 

解决方法:

apt install libelf-dev

 

本文地址:https://blog.csdn.net/weixin_40904220/article/details/110559736

相关标签: 错误