Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #1

Closed
geniusgogo opened this issue Mar 14, 2016 · 4 comments
Closed

build error #1

geniusgogo opened this issue Mar 14, 2016 · 4 comments

Comments

@geniusgogo
Copy link

$ make clean ;make
rm -f airkiss main.o osdep.o linux.o radiotap/radiotap-parser.o common.o wifi_scan.o airkiss.o
gcc main.c -o main.o
In file included from main.c:4:0:
wifi_scan.h:4:27: fatal error: netlink/errno.h: 没有那个文件或目录
#include <netlink/errno.h>
^
compilation terminated.
make: *** [main.o] 错误 1

host:ubuntu server 14.04.3

@evilpan
Copy link
Owner

evilpan commented Mar 14, 2016

locate netlink/errno.h

看是否有这个文件,如果没有表示netlink没安装:

sudo apt-get install libnl-3-dev libnl-genl-3-dev

@geniusgogo
Copy link
Author

谢谢,是库的路径没修改。

@w450434204
Copy link

netlink已经安装了还是报错。请问库的路径怎么修改。谢谢啦

@w450434204
Copy link

编译报错:wifi_scan.h:4:27: fatal error: netlink/errno.h: 没有那个文件或目录

locate netlink/errno.h 执行这个命令没有输出结果。

然后执行这个命令sudo apt-get install libnl-3-dev libnl-genl-3-dev,提示系统已安装。不需要更新。

不知道怎么处理了,楼上有人说是库的路径要修改。不知道怎么更改,困扰几天了,希望楼主能帮忙看一下啊。谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants