Aircrack-ng forum

General Category => Newbies => Topic started by: johnyork on May 20, 2014, 01:41:31 pm

Title: installation error when installing
Post by: johnyork on May 20, 2014, 01:41:31 pm
xxxx@xxxx:~$ cd aircrack-ng-1.2-beta3
xxxx@xxxx:~/aircrack-ng-1.2-beta3$ sudo make
[sudo] password for user:
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3..  Stop.
xxxx@xxxx:~/aircrack-ng-1.2-beta3$

Installing on Ubuntu 14.04 LTS

Read troubleshooting area pertaining to installation and I couldn't find a solution.
Title: Re: installation error when installing
Post by: Jano on May 20, 2014, 05:19:39 pm
Hi ohnyork,
[sudo] password for user:
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.  Stop
- The error message is clear: you need to install the development files of libnl: (Ubuntu 14.04 uses libnl3)
Code: [Select]
sudo apt-get install libnl-3-dev libnl-genl-3-dev
Bye Jano
Title: Re: installation error when installing
Post by: johnyork on May 20, 2014, 07:56:39 pm
I already installed libnl3 and I confirmed it. However, I am still getting the same message.

xxxx@xxxx:/$ sudo apt-get install libnl-3-dev libnl-genl-3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libnl-3-dev is already the newest version.
libnl-genl-3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
xxxx@xxxx:/$ cd aircrack-ng-1.2-beta3
xxxx@xxxx:/aircrack-ng-1.2-beta3$ sudo make
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3..  Stop.
xxxx@xxxx:/aircrack-ng-1.2-beta3$
Title: Re: installation error when installing
Post by: kcdtv on May 20, 2014, 08:13:58 pm
could you put here the ouput of
Code: [Select]
dpkg -l | grep libnl?
Title: Re: installation error when installing
Post by: johnyork on May 21, 2014, 06:01:26 am
xxxx@xxxx:~$ dpkg -l | grep libnl
ii  libnl-3-200:i386                                      3.2.21-1                                            i386         library for dealing with netlink sockets
ii  libnl-3-200-dbg                                       3.2.21-1                                            i386         debug symbols for libnl3
ii  libnl-3-dev                                           3.2.21-1                                            i386         development library and headers for libnl-3
ii  libnl-cli-3-200:i386                                  3.2.21-1                                            i386         library for dealing with netlink sockets - cli helpers
ii  libnl-cli-3-dev                                       3.2.21-1                                            i386         development library and headers for libnl-cli-3
ii  libnl-doc                                             1.1-8ubuntu1                                        all          API documentation for libnl
ii  libnl-genl-3-200:i386                                 3.2.21-1                                            i386         library for dealing with netlink sockets - generic netlink
ii  libnl-genl-3-dev                                      3.2.21-1                                            i386         development library and headers for libnl-genl-3
ii  libnl-nf-3-200:i386                                   3.2.21-1                                            i386         library for dealing with netlink sockets - netfilter interface
ii  libnl-nf-3-dev                                        3.2.21-1                                            i386         development library and headers for libnl-nf-3
ii  libnl-route-3-200:i386                                3.2.21-1                                            i386         library for dealing with netlink sockets - route interface
ii  libnl-route-3-dev                                     3.2.21-1                                            i386         development library and headers for libnl-route-3
ii  libnl-utils                                           3.2.21-1                                            i386         Utilities for dealing with netlink sockets
ii  libnl1:i386                                           1.1-8ubuntu1                                        i386         library for dealing with netlink sockets
xxxx@xxxx:~$
Title: Re: installation error when installing
Post by: Jano on May 21, 2014, 07:50:04 am
Hi johnyork,
- Try to install all recommended:
Code: [Select]
sudo apt-get install linux-headers-$(uname -r) build-essential make patch subversion openssl libssl-dev zlib1g zlib1g-dev libssh2-1-dev libnl-3-dev libnl-genl-3-dev gettext autoconf sqlite3 libsqlite3-dev tcl8.5 libpcap0.8 libpcap0.8-dev python-scapy python-dev cracklib-runtime- And then use not in root user:
Code: [Select]
make sqlite=true unstable=true libnl=true && sudo make sqlite=true unstable=true libnl=true install
Bye Jano
Title: Re: installation error when installing
Post by: johnyork on May 21, 2014, 01:24:06 pm
Okay Jano, I ran
sudo apt-get install linux-headers-$(uname -r) build-essential make patch subversion openssl libssl-dev zlib1g zlib1g-dev libssh2-1-dev libnl-3-dev libnl-genl-3-dev gettext autoconf sqlite3 libsqlite3-dev tcl8.5 libpcap0.8 libpcap0.8-dev python-scapy python-dev cracklib-runtime

and still got the message
common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3..  Stop.

Also, could you give me more info about running
make sqlite=true unstable=true libnl=true && sudo make sqlite=true unstable=true libnl=true install
Do I need to be in a specific directory or do I need to specify a target?
Title: Re: installation error when installing
Post by: Jano on May 21, 2014, 09:32:38 pm
@johnyork,
- I think you're doing something wrong because in one of my machines I have Ubuntu 14.04 64bit and I don't have this problem.

- Try to uninstall your version of Aircrack-ng and then check the SVN version:
(use your account and not the root user)
Code: [Select]
cd ~/;svn co -r 2390 http://svn.aircrack-ng.org/trunk/ aircrack-ng;cd aircrack-ng;make check && sudo make uninstall && sudo make clean
- If all the tests are positive then continue the installation:
Code: [Select]
cd ~/aircrack-ng;make sqlite=true unstable=true libnl=true && sudo make sqlite=true unstable=true libnl=true install && sudo airodump-ng-oui-update
Bye Jano
Title: Re: installation error when installing
Post by: johnyork on May 24, 2014, 02:00:10 pm
Formatted the partition, re-installed Linux, added required packs, installed aircrack-ng-1.2-beta3 with no problem.
Title: Re: installation error when installing
Post by: ehsan on August 08, 2014, 07:38:18 am
try "apt-get install libnl-dev"
Title: Re: installation error when installing
Post by: Cerrin on December 24, 2014, 12:59:56 pm
I ran into the same problem using 14.10 and "apt-get install libnl-dev" did resolve the issue thanks