roguehostapd
roguehostapd copied to clipboard
Error installing on OpenWRT
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?
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...
Hi @lcotonea, No, I didn't. Could you explain how to do that? Maybe, this can help other peolple. Thanks.
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.
try installing libnl-3-dev . it might not be in the repos (that was the case on termux) but fixed the issue for me.