Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on OpenWRT #20

Open
DarkSkull91 opened this issue Jul 21, 2019 · 4 comments
Open

Error installing on OpenWRT #20

DarkSkull91 opened this issue Jul 21, 2019 · 4 comments

Comments

@DarkSkull91
Copy link

DarkSkull91 commented Jul 21, 2019

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
Copy link

lcotonea commented May 7, 2020

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
Copy link
Author

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

@lcotonea
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants