linux/module.h没有这样的文件或目录 [英] linux/module.h No such file or Directory

查看:684
本文介绍了linux/module.h没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的论文,我正在使用协议ARAN创建一个Manet.要安装该协议,我正在使用本手册,但第一步是创建trace_route时,出现以下错误:

For my thesis I am creating a Manet using the protocol ARAN. To install the protocol I'm using this manual, but the first step, the creation of trace_route, I received errors such as:

-linux/module.h: No such file or directory

-linux/procs_Fs: No such file or directory

-linux/skbuff: No such file or directory

我在网上搜索后发现问题出在标题中,但找不到解决方法...

I searched the web and found out that the problem is in the headers, but I do not find the solution ...

P.S.我正在使用 Ubuntu 10.04 LTS 重新编译的内核2.6.33

P.S. I am using Ubuntu 10.04 LTS Kernel 2.6.33 recompiled

推荐答案

您缺少Linux内核标头,该标头允许您根据Linux内核编译代码.

You're missing the Linux kernel headers which allow you to compile code against the Linux kernel.

要仅在 Ubuntu 中安装标头,请执行以下操作:

To install just the headers in Ubuntu:

$ sudo apt-get install linux-headers-$(uname -r)

要在 Ubuntu 中安装整个Linux内核源:

To install the entire Linux kernel source in Ubuntu:

$ sudo apt-get install linux-source

请注意,您应该使用与正在运行的内核匹配的内核标头.

这篇关于linux/module.h没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆