scripts/extract-cert.c:21:25: fatal error: openssl/bio.h

£神魔★判官ぃ 2022-11-29 12:29 197阅读 0赞

报错问题 1:scripts/extract-cert.c:21:25: fatal error: openssl/bio.h

报错原因:

编译内核命令:make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

出现fatal error: openssl/名单.h: No such file or directory。原因是libssl-dev~没有安装

libssl-dev包含libraries, header files and manpages,是openssl的一部分

解决方法:

  1. sudo apt-get install libssl-dev

报错问题 2:

  1. $ sudo apt-get install libssl-dev
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. Some packages could not be installed. This may mean that you have
  6. requested an impossible situation or if you are using the unstable
  7. distribution that some required packages have not yet been created
  8. or been moved out of Incoming.
  9. The following information may help to resolve the situation:
  10. The following packages have unmet dependencies:
  11. libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu5) but 1.0.1-4ubuntu5.3 is to be installed
  12. Recommends: libssl-doc but it is not going to be installed
  13. E: Unable to correct problems, you have held broken packages.

解决方法:

  1. sudo aptitude install libssl-dev

根据提示操作,替换掉当前的libssl-dev

参考链接:

https://blog.csdn.net/beilson/article/details/79774036

https://blog.csdn.net/newmann/article/details/70149021

发表评论

表情:
评论列表 (有 0 条评论,197人围观)

还没有评论,来说两句吧...

相关阅读