【问题标题】:Trying to compile kernel module in Windows Subsystem for Linux error尝试在 Windows 子系统中编译内核模块 for Linux 错误
【发布时间】:2019-04-10 08:15:52
【问题描述】:

当我从这个网站创建这个 makefile 后运行 make http://www.tldp.org/LDP/lkmpg/2.6/html/x181.html

当我在 WSL 中运行 make 时,我得到 make -C /lib/modules/4.4.0-17134-Microsoft/build M=/mnt/c/Users/tdwil/OneDrive/code/Documents/cfiles/systems/linuxkernel modules

make[1]: *** /lib/modules/4.4.0-17134-Microsoft/build: 没有这样的文件或目录。停下来。

Makefile:5:目标“全部”的配方失败

make: *** [all] 错误 2

这是因为 make 在 WSL 中是不可能的吗?还是我输入了一些错误的目录?

【问题讨论】:

    标签: makefile kernel windows-subsystem-for-linux


    【解决方案1】:

    首先,您在 WSL 上没有 Linux 标头。 Windows 的另一个问题是 Linux 内核有几个大小写不同的文件名。

    最好在 Linux 机器或 VM 上编译内核或 kenel 模块。

    【讨论】:

      猜你喜欢
      • 2017-10-01
      • 2017-05-02
      • 2011-05-03
      • 2012-11-19
      • 1970-01-01
      • 1970-01-01
      • 2011-06-06
      相关资源
      最近更新 更多