Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux使指定库位置_Linux_Makefile_Dependencies_Posix - Fatal编程技术网

Linux使指定库位置

Linux使指定库位置,linux,makefile,dependencies,posix,Linux,Makefile,Dependencies,Posix,我试图在删除hostapd后构建它(我不能使用yaourt,因为我的网络适配器不再工作)。当我尝试使用make实现此目的时,以下是输出: netlink/genl/genl.h: No such file or directory 因此,我在使用另一台pc下载libnl 3.2.25后安装了它,但使用hostapd运行make仍然会抛出相同的错误。我认为这是因为(在配置libnl时出现): 问题是:我不知道如何告诉make libnl在哪里,因为没有配置文件,我应该在哪里添加“-I/usr/i

我试图在删除hostapd后构建它(我不能使用yaourt,因为我的网络适配器不再工作)。当我尝试使用make实现此目的时,以下是输出:

netlink/genl/genl.h: No such file or directory
因此,我在使用另一台pc下载libnl 3.2.25后安装了它,但使用hostapd运行make仍然会抛出相同的错误。我认为这是因为(在配置libnl时出现):


问题是:我不知道如何告诉make libnl在哪里,因为没有配置文件,我应该在哪里添加“-I/usr/include/libnl3”?抱歉,如果这是一个愚蠢的问题,但我阅读了make的文档却没有找到答案,而且我以前从未遇到过这个问题。

检查/usr/local/include-如果您在这里找不到它,请在/usr/或/中运行find命令以查找genl。hI通过安装旧版本的libnl解决了这个问题。谢谢你!
 NOTE

There have been some changes starting with 3.2 regarding where and how libnl
is being installed on the system in order to allow multiple libnl versions
to be installed in parallel:

- Headers will be installed in ${prefix}/include/libnl3, therefore
  you will need to add "-I/usr/include/libnl3" to CFLAGS

- The library basename was renamed to libnl-3, i.e. the SO names become
  libnl-3.so., libnl-route-3.so, etc.

- libtool versioning was assumed, to ease detection of compatible library
  versions.