LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2017, 11:11 AM   #1
thisIsAName
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
trying to install aircrack-ng, 'make' can't find library


Hello there.
I am trying to install aircrack-ng (version: 1.2-rc4) on Ubuntu (version: 16.04). When I go to run the 'make' command, I receive this output:

Code:
make -C src all
make[1]: Entering directory '/home/michael/.hackingTools/aircrack-ng/src'
gcc -g -W -Wall -O3  -mavx2 -DJOHN_AVX2 -pthread -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -DSIMD_CORE  wpaclean.o osdep/radiotap/radiotap.o -o wpaclean -Losdep -losdep -lnl-genl-3 -lnl-3
/usr/bin/ld: cannot find -lnl-genl-3
collect2: error: ld returned 1 exit status
Makefile:247: recipe for target 'wpaclean' failed
make[1]: *** [wpaclean] Error 1
make[1]: Leaving directory '/home/michael/.hackingTools/aircrack-ng/src'
Makefile:25: recipe for target 'all' failed
make: *** [all] Error 2
I understand that the error comes from the missing '-lnl-genl-3' but I cannot find out how to install this library on my machine. Using apt-get causes an error as it thinks the library is an argument. I tried doing a few google searches for the library, but the results have absolutely nothing to do with linux.

If anyone could help me solve this problem it would be greatly appreciated
Thank you.
 
Old 12-03-2017, 09:04 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 13,334
Blog Entries: 18

Rep: Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510Reputation: 3510
A web search for libnl3, referenced in the third line of the code above turned up this: https://www.infradead.org/~tgr/libnl/

It appears that -lnl-genl-3 is one of the libraries included in that package.

Welcome to the wonderful world of dependency resolution.

Last edited by frankbell; 12-03-2017 at 09:07 PM.
 
Old 12-04-2017, 08:36 PM   #3
thisIsAName
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for the help @frankbell, but I am still having trouble. Once you pointed out the package I needed I downloaded it, but still could not get it to work.

I did quite a bit more web-searching and came across several suggestions claiming I needed to either export certain environment variables beforehand (I believe they were LD_LIBRARY_PATH and LIBRARY_PATH) or create symbolic links between versioned libraries and non-versioned or between the library and lib64.

I also tried changing the path in the makefile of aircrack-ng, but I reverted to my untouched backup after every unsuccessful make.


The error message is still exactly the same as when I first tried, so I haven't had much of an effect.
I guess what I'm asking is: do you have any ideas, or know what is wrong?

I am very inexperienced with the make command and with messing with libraries so I have to thank you again.
 
Old 12-05-2017, 02:12 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 7,948
Blog Entries: 5

Rep: Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901
you need to install the -dev versions of those libraries, too.

why are you compiling, instead of using what's in the repos?
https://askubuntu.com/questions/8118...latest-version
 
1 members found this post helpful.
Old 12-05-2017, 04:51 PM   #5
thisIsAName
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
It worked! Thank you so much.

I remember reading about the '-dev' versions of packages yesterday as well, but I thought that I had it installed. I guess not. (I did check, just not well enough apparently).


As to why I didn't just use the repos... there really isn't a reason. I just didn't take the two seconds of thought needed to realize it might be there. But once I hit the error and couldn't solve it I just became stubborn and wanted to learn what was wrong and how to fix it.

Thanks again for the help and for your patience.
 
Old 12-06-2017, 03:08 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 7,948
Blog Entries: 5

Rep: Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901
Quote:
Originally Posted by thisIsAName View Post
As to why I didn't just use the repos... there really isn't a reason. I just didn't take the two seconds of thought needed to realize it might be there. But once I hit the error and couldn't solve it I just became stubborn and wanted to learn what was wrong and how to fix it.
be aware that you installed it outside the scope of your package managing system.
it might stop working at some point or even conflict with other software.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] make can't find glib library that is installed VolumetricSteve Linux - Software 2 06-20-2015 01:29 AM
[SOLVED] rpm install can't find required libclntsh.so library in RHEL 5 guertin Red Hat 3 04-07-2010 06:00 PM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
can't find java library to install plugin itr1275 Linux - Newbie 2 01-06-2007 10:39 AM
make error "libtool: link: cannot find the library `' " jdolluc Linux - Software 2 10-15-2003 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration