1.1 libnl-3.4.0
./configure--PREFIX=/HOME/FNIE/WPA/OUT/LIBNL--disable-static
Make
Make check
Make install
To install the API documentation:
Mkdir-vp/home/fnie/wpa/out/libnl/doc
Tar-xf. /libnl-doc-3.4.0.tar.gz--strip-components=1--no-same-owner-c/home/fnie/wpa/out/libnl/doc
1.2 libnl-1.1-stable
After compiling the wpa_supplicant-2.6 times wrong, "can ' t find-lnl", so compile libnl-1.1-stable.
./configure--prefix=/home/fnie/wpa/out/libnl-1.1-stable
Make
Make check
Make install
To install the API documentation:
Mkdir-vp/home/fnie/wpa/out/libnl/doc
Tar-xf. /libnl-doc-3.4.0.tar.gz--strip-components=1--no-same-owner-c/home/fnie/wpa/out/libnl/doc
Openssl
./config Shared--prefix=/home/fnie/wpa/out/ssl/prefix--openssldir=/home/fnie/wpa/out/ssl/configuration
Make
Make Test
Make install
wpa_supplicant-2.6
CD ~/wpa/wpa_supplicant-2.6/wpa_supplicant
CP defconfig. config
Modify the configuration file. config, under "#Uncomment following Linee and fix ..." Add the following statement, which adds the header and library file directories for OpenSSL and LIBNL, and updates the compiled link environment variables:
CFLAGS + =-i/home/fnie/wpa/out/ssl/prefix/include
CFLAGS + =-i/home/fnie/wpa/out/libnl/include
LIBS + =-l/home/fnie/wpa/out/ssl/prefix/lib
LIBS + =-l/home/fnie/wpa/out/libnl/lib
LIBS + =-l/home/fnie/wpa/out/libnl-1.1-stable/lib
libs_p + =-l/home/fnie/wpa/out/ssl/prefix/lib
Perform make to compile, successfully generate three target files wpa_supplicant, WPA_CLI, Wpa_passphrase.
Compiling wpa_supplicant-2.6 on Ubuntu