【问题标题】:compilation linux kernel openssl/opensslv.h error编译linux内核openssl/opensslv.h错误
【发布时间】:2018-09-14 03:08:39
【问题描述】:

我正在尝试编译 Linux 内核,但未在 menuconfig 中选择 TCP/IP 协议,但在尝试编译时遇到此错误:

scripts/sign-file.c:25:30: 致命错误: openssl/opensslv.h: No such 文件或目录

要编译,我使用这个命令:

fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers

我正在使用 linux-4.10.1 的内核

【问题讨论】:

    标签: linux compilation linux-kernel kernel


    【解决方案1】:

    由于make-kpkg 是特定于Debian 的工具,我假设您使用的是Debian 发行版;你提到它是 Ubuntu。

    看起来您没有安装构建内核的依赖项。您可以使用以下方法安装它们(在 Debian/Ubuntu 上):

    # apt build-dep linux
    

    如果 APT 缺少源地址,请修改您的 /etc/apt/sources.list 以包含以下行:

    deb-src http://de.archive.ubuntu.com/ubuntu/ DIST main
    

    它应该在那个文件中被注释(所以以#为前缀)。如果是这样,只需删除#,否则复制deb ... 行并将deb 更改为deb-src。记得之后重新加载包源:

    # apt update
    

    【讨论】:

    • 谢谢你的回答我使用的是 Ubuntu 但我读到的命令是一样的
    • 不客气。如果可行,请随时接受/支持我的回答:-)。
    • 其实我有这个答案“E:你需要在你的sources.list中插入一些“源”地址”
    • 我已经扩展了我的答案
    猜你喜欢
    • 2018-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-09
    相关资源
    最近更新 更多