Compiling wpa_supplicant-2.6 on Ubuntu

Source: Internet
Author: User
Tags openssl

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

    1. Openssl
      ./config Shared--prefix=/home/fnie/wpa/out/ssl/prefix--openssldir=/home/fnie/wpa/out/ssl/configuration
      Make
      Make Test
      Make install

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.