roguehostapd icon indicating copy to clipboard operation
roguehostapd copied to clipboard

Error installing on OpenWRT

Open DarkSkull91 opened this issue 5 years ago • 4 comments

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?

DarkSkull91 avatar Jul 21 '19 17:07 DarkSkull91

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...

lcotonea avatar May 07 '20 11:05 lcotonea

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

DarkSkull91 avatar May 07 '20 18:05 DarkSkull91

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.

lcotonea avatar May 10 '20 10:05 lcotonea

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

jj15warrior avatar Apr 07 '24 07:04 jj15warrior