Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Are you running ./configure first, this normally creates a make file
try
Code:
./configure && make && makeinstall
could also try
Code:
./configure && make && checkinstall
if you have checkinstall installed on your system which i would strongly advise if you build alot from source. It creates a package specific to your distribution ( your case a .rpm file) which can be easily install and makes uninstalling easy too.
I just built it successfully. Strange. Here was my procedure in case it helps:
downloaded file airsnort-0.2.7e.tar.gz. Download came courtesy of sourceforge. Thanks again sf!
un-tared file with:
Code:
tar zxf airsnort-0.2.7e.tar.gz
It created a directory named "airsnort-0.2.7e". Change to directory:
Code:
cd airsnort-0.2.7e
Run configure:
Code:
./configure
seemed to run OK. Run make:
Code:
make
Failed. Complains about pcap. Install libpcap-dev. Note this command/package name is ubuntu specific:
Code:
sudo apt-get install libpcap-dev
Try to make again:
Code:
make
It works. I chose not to make install, but use checkinstall, which builds a package first and then installs that. It makes un-installation much easier:
It's the name of the package on the Ubuntu distribution which provides the development version of the pcap (packet capture) library. airsnort need this to be installed before it will build. Most distros separate libraries into runtime and development packages. The runtime provides the /usr/lib/... files (like DLLs under windows), and the -dev package provides the /usr/include/.../*.h files needed by the compiler to build programs which use the library.
When i run ./configure, i do get an error, its the following:
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
And i havn't got a clue what that means :-(
I had alook in YaSt and it appears that gtk and gtk2 are both installed,
It means that the program you are trying to build depends on some software which isn't installed. In this case gtk+-2.0.
You probably do have the runtime version of this package installed, but probably not the development version (needed to compile programs which use the library). Open up YaST and install the version of this package which has -devel on the end of the name.
When building a program, you should read the README and INSTALL files. These will usually list such dependencies. In the case of airsnort, you need gtk and libpcap, as well as some kernel dependencies which I hope SuSE will handle OK.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.