vicco
vicco

Reputation: 1089

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 http://networkradius.com/doc/FreeRADIUS-Implementation-Ch6.pdf 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

Upvotes: 3

Views: 7718

Answers (1)

NrY
NrY

Reputation: 309

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

Upvotes: 6

Related Questions