Closed sidjad closed 8 years ago
The /usr/include/netlink/genl/genl.h
header file is contained in the libnl-dev
package. You can install it using sudo apt-get install libnl-dev
commnad.
sudo apt-get install libnl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libnl-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libnl-dev' has no installation candidate
sudo apt-get install libnl-3-dev
I receive same error , I have installed libnl-3-dev, aswell as other libnl libraries
[root:/opt/hostapd-1.0-karma/hostapd]# sudo apt-get install libnl-3-dev Reading package lists... Done Building dependency tree Reading state information... Done libnl-3-dev is already the newest version. libnl-3-dev set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
I believe I've installed the correct prerequisites :
` [root:/pen/802.11]# dpkg -l | grep libnl
ii libnl-3-200:amd64 3.2.24-2 amd64 library for dealing with netlink sockets ii libnl-3-dev 3.2.24-2 amd64 development library and headers for libnl-3 ii libnl-genl-3-200:amd64 3.2.24-2 amd64 library for dealing with netlink sockets - generic netlink ii libnl-genl-3-dev 3.2.24-2 amd64 development library and headers for libnl-genl-3 ii libnl-route-3-200:amd64 3.2.24-2 amd64 library for dealing with netlink sockets - route interface `
If you're going to use libnl32 you also need to edit hostapd's config file. The patch at https://github.com/sensepost/mana/pull/42/files should explain it.
On 05 Feb 2016, at 11:14 PM, brandontict notifications@github.com wrote:
I receive same error , I have installed libnl-3-dev,
[root:/opt/hostapd-1.0-karma/hostapd]# sudo apt-get install libnl-3-dev Reading package lists... Done Building dependency tree
Reading state information... Done libnl-3-dev is already the newest version. libnl-3-dev set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
— Reply to this email directly or view it on GitHub.
Thank you for the reply, I'll post my results.
We've switched to libnl3 by default, and the binary debs in the last release are available if you're struggling to compile.
I installed libnl-3-dev ,but hostapd: error while loading shared libraries: libnl.so.1: cannot open shared object file: No such file or directory
can u tell me how to do
This means you compiled with NL 2.0 not 3.0 support and it's looking for that lib. Edit .config to use libnl3.
Sent from my phone
On 19 Dec 2016, at 3:51 PM, weili1457355863 notifications@github.com wrote:
I installed libnl-3-dev ,but hostapd: error while loading shared libraries: libnl.so.1: cannot open shared object file: No such file or directory
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.
I am also experiencing this issue, I have all dependencies installed and got CONFIG_LIBNL32=y set
Can you list the libnl packages you have?
On 05 Feb 2017, at 12:05 AM, joker5bb notifications@github.com wrote:
I am also experiencing this issue, I have all dependencies installed and got CONFIG_LIBNL32=y set
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.
root@kali:~# dpkg -l | grep libnl ii libnl-3-200:armhf 3.2.27-1+b1 armhf library for dealing with netlink sockets ii libnl-3-dev:armhf 3.2.27-1+b1 armhf development library and headers for libnl-3 ii libnl-genl-3-200:armhf 3.2.27-1+b1 armhf library for dealing with netlink sockets - generic netlink ii libnl-route-3-200:armhf 3.2.27-1+b1 armhf library for dealing with netlink sockets - route interface
Im also using the hostapd 2.6 branch
find / -name genl.h /usr/include/libnl3/netlink/genl/genl.h
@joker5bb @weili1457355863
Try installing libnfnetlink-dev and pkg-config using the following command:
apt-get install libnfnetlink-dev pkg-config
I stumbled across this thread on Google after running into the same problem today trying to compile hostapd-2.6 for a similar project. Figured out the solution after reading the following post:
https://ubuntuforums.org/showthread.php?t=2090758
@singe: If this works for @joker5bb and @weili1457355863 as well, it might be worth adding those packages to the project dependencies.
The correct dependencies are libnl-3-dev and libnl-genl-3-dev
@singe @joker5bb @joker5bb @mw3demo also encountered the same problem when installing hostapd-wpe on Raspberry Pi. How should I solve it? System version: Debian GNU/Linux 11 (bullseye) No desktop version system
I want to study airgeddon on Raspberry Pi 4 OS, but it says hostapd-wpe is missing. I found that hostapd dependency is installed by default on Raspberry Pi system. Is hostapd not equivalent to hostapd-wpe? How can I install hostapd-wpe successfully? Thank you.
make -C hostapd-mana/hostapd/ make[1]: Entering directory '/root/mana/hostapd-mana/hostapd' ../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: No such file or directory
include <netlink/genl/genl.h>
compilation terminated. Makefile:891: recipe for target '../src/drivers/driver_nl80211.o' failed make[1]: * [../src/drivers/driver_nl80211.o] Error 1 make[1]: Leaving directory '/root/mana/hostapd-mana/hostapd' Makefile:3: recipe for target 'all' failed make: * [all] Error 2