在 ubuntu 16.04 服务器上安装 Wpasupplicant 失败,libnl-3-dev 有问题
Installation of Wpasupplicant failed on ubuntu 16.04 server, problems with libnl-3-dev
我正在尝试从官方网站在 Ubuntu 16.04 服务器上安装最新的 Wpa_Supplicant。根据 http://deployingradius.com/scripts/eapol_test/ 我取消注释 CONFIG_EAPOL_TEST=yes
和 运行 make eapol_test
但我失败了:
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
Makefile:1613: recipe for target 'eapol_test' failed
make: *** [eapol_test] Error 1
然而,当我使用 Ubuntu 14.04 服务器时,一切正常!
我发现包 libnl-dev
解决了 ubuntu14.04 的 **/usr/bin/ld: cannot find -lnl**
问题。但是,Ubuntu 16.04 在他的存储库中没有 libnl-dev
,而是它有 libnl-3-dev
,但是当我 运行 make eapol_test
时 wpa_supplicant
失败了.
谁能帮我在 ubuntu 16.04 plz 上安装 wpa_supplicant?我正在 运行 在 ubuntu 16.04 而不是 ubuntu 14.04 上尝试一切.
提前谢谢你,
哈维尔
您可以尝试以下方法:
- 安装包
libnl-genl-3-dev
在 .config 文件中取消注释以下(第 2 行):
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y
然后我可以 link 正确地定位目标,因为它随后使用“-lnl-3”而不是“-lnl”
我正在尝试从官方网站在 Ubuntu 16.04 服务器上安装最新的 Wpa_Supplicant。根据 http://deployingradius.com/scripts/eapol_test/ 我取消注释 CONFIG_EAPOL_TEST=yes
和 运行 make eapol_test
但我失败了:
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
Makefile:1613: recipe for target 'eapol_test' failed
make: *** [eapol_test] Error 1
然而,当我使用 Ubuntu 14.04 服务器时,一切正常!
我发现包 libnl-dev
解决了 ubuntu14.04 的 **/usr/bin/ld: cannot find -lnl**
问题。但是,Ubuntu 16.04 在他的存储库中没有 libnl-dev
,而是它有 libnl-3-dev
,但是当我 运行 make eapol_test
时 wpa_supplicant
失败了.
谁能帮我在 ubuntu 16.04 plz 上安装 wpa_supplicant?我正在 运行 在 ubuntu 16.04 而不是 ubuntu 14.04 上尝试一切.
提前谢谢你, 哈维尔
您可以尝试以下方法:
- 安装包
libnl-genl-3-dev
在 .config 文件中取消注释以下(第 2 行):
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored) CONFIG_LIBNL32=y
然后我可以 link 正确地定位目标,因为它随后使用“-lnl-3”而不是“-lnl”