Make compilation exits with "/usr/bin/ld: cannot find -lnl"

I have set up a radius-server on a raspberry-pi. Now I want to test it according to article 6.2.1 in Unfortunately building the "eapol_test" file as described in the document doesnt work for me. When executing

make eapol_test

in the newly created folder it runs for a minute or so and then exits, saying

/usr/bin/ld: cannot find -lnl
collect2: ld returned 1 exit status
Makefile:1625: recipe for target 'eapol_test' failed

Using a newer version of wpa_supplicant doesnt solve it. I dont know much about the make command, or how to make it find "-lnl" (whatever this might be) and I couldn't find a solution to this problem either.

Does anyone know how to fix this? Thank you in advance

11

1 Answer

In case someone stumbles upon this (like I did from a Google result), following solves this issue (Debian Jessie / wpa_supplicant-2.5 from source):

Install libnl-3-dev and symlink libnl-3.so to libnl.so

# apt-get install libnl-3-dev
# ln -s /lib/x86_64-linux-gnu/libnl-3.so /lib/x86_64-linux-gnu/libnl.so
# make clean
# make eapol_test
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like