wifiphisher / roguehostapd

Hostapd fork including Wi-Fi attacks and providing Python bindings with ctypes.
BSD 3-Clause "New" or "Revised" License
175 stars 67 forks source link

Error installing on OpenWRT #20

Open DarkSkull91 opened 5 years ago

DarkSkull91 commented 5 years ago

Hi, I'm trying to install roguehostapd on OpenWRT but without success... When I run the command python setup.py install I got these errors:

/tmp/tmp_netlink_r6Pneo/test_netlink.c:2:10: fatal error: netlink/netlink.h: No such file or directory

 #include <netlink/netlink.h>
          ^~~~~~~~~~~~~~~~~~~

compilation terminated.

mipsel-openwrt-linux-musl-gcc: internal compiler error: Segmentation fault (program as)

Please submit a full bug report,

with preprocessed source if appropriate.

See <https://dev.openwrt.org/> for instructions.

[!] The development package for netlink is missing. Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libnl-3-dev libnl-genl-3-dev'.

I have installed libnl-core, libnl-genl, libnl-nf, libnl-route and libnl-tiny but I cannot install it.

What's the problem?

lcotonea commented 4 years ago

Hi @DarkSkull91,

I have the same issue. Did you find any solution? I'm afraid to proceed a cross compilation since a debian distro to reach the goal...

DarkSkull91 commented 4 years ago

Hi @lcotonea, No, I didn't. Could you explain how to do that? Maybe, this can help other peolple. Thanks.

lcotonea commented 4 years ago

Ok, the problem is that libnl header files are not installed. You can retrieve them on the openwrt github (take care of your openwrt version) and put then into your device include path : /usr/include

After that, you could have an error with openssl. It's because the openssl binary of openwrt is too tiny and some internal feature are not compiled. Then you have to follow this guide (https://telecnatron.com/articles/Cross-Compiling-For-OpenWRT-On-Linux/#scamlSectionId-3) to download the cross compiling system, and compile openssl with all feature (add all openssl feature to 1 into your .config file) and install it to your device.

jj15warrior commented 7 months ago

try installing libnl-3-dev . it might not be in the repos (that was the case on termux) but fixed the issue for me.