Error Cannot Find Pcap.h
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Problem linking against pcap.h up vote 0 down vote favorite I am trying to compile ethping Here is the command that gets issued via make: gcc -Wall -Werror -ggdb -g -O2 -lpcap -o ethping ethping.o ieee8021ag.o dot1ag_eth.o I now get this error message: /dot1ag-utils-master/src/ethping.c:65: undefined reference to `pcap_breakloop' Indicating that it cannot find the pcap.h. So I type: root:src# whereis pcap.h pcap: /usr/include/pcap.h /usr/include/pcap /usr/share/man/man3/pcap.3pcap.gz root:src# root:src# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/include And the /usr/include is definitely in my path. The only thing that might be an issue is that /usr/include/pcap.h is a stub file that does and include of pcap/pcap.h. /* * For backwards compatibility. * * Note to OS vendors: do NOT get rid of this file! Many applications * expect to be able to include
exim MySql scripts Utilities Web-ART WordPress Wallpapers Our Forums Donate to CryBit It's new!!! How to kill unwanted tty in Unix? [Solved] PHP modules not loading properly - CloudLinux How to install Adminer on CentOS server? How to change PHP handler from SuPHP to FastCGI in a cPanel server Manage passwords using LastPass - Live safely How to install "iftop" on Unix/Linux server Posted by: Arunlal Ashok in commands, Linux, Web Server 2 Comments The command "iftop" is using for bandwidth(BW) monitoring on a server. It is simple to monitor a server BW with iftop command. How to install iftop on my server? Ya.. http://askubuntu.com/questions/582042/problem-linking-against-pcap-h Its really simple to install iftop on your Unix/Linux server. The following steps will help you to install iftop. ssh to your server----> [[emailprotected]]# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz [[emailprotected]]# tar -zxvf iftop-0.17.tar.gz [[emailprotected]]# cd iftop-0.17 [[emailprotected]]# ./configure For a fresh server you may get an error like this 🙁 don't worry about that, ................... ................... checking for gawk... gawk checking whether make sets ${MAKE}... no checking for gcc... no checking for https://crybit.com/iftop-command-installationunixlinux/ cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH That means server needs gcc for compilation [[emailprotected]]# yum install gcc Again run this [[emailprotected]]# ./configure ................ ................ checking how to call gethostbyaddr_r... 8 args, int return checking gethostbyaddr_r usability... yes checking where to find pcap.h... no idea configure: error: can't find pcap.h You're not going to get very far without libpcap. [[emailprotected]]# yum -y install libpcap libpcap-devel [[emailprotected]]# ./configure ................ ................ checking pcap.h presence... yes checking for pcap.h... yes checking for a curses library containing mvchgat... none found configure: error: Curses! Foiled again! (Can't find a curses library supporting mvchgat.) Consider installing ncurses. [[emailprotected]]# yum -y install ncurses ncurses-devel [[emailprotected]]# ./configure [[emailprotected]]# make [[emailprotected]]# make install Thats it.. These are the simple steps to install iftop on your server. Related topics: Bandwidth monitoring on linux server with iftop command 2013-09-22 Arunlal Ashok Share ! tweet About Arunlal Ashok Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!! Previous: R=dkim_lookuphost defer (-1): host lookup did
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu https://ubuntuforums.org/showthread.php?t=1287245 Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] Pcap.h no such file and directory Having an Issue With Posting ? Do you want to help us debug the posting issues ? < error cannot is the place to report it, thanks ! Results 1 to 4 of 4 Thread: Pcap.h no such file and directory Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode October 10th, 2009 #1 skyyrie View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Dec 2008 Beans 2 Pcap.h no such file and directory error cannot find As I try to cross compile one source code on Ubuntu 9.10beta,It always reports Pcap.h no such files even I install&reinstall libpcap and libpcap-dev many times. Adv Reply October 11th, 2009 #2 skyyrie View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Dec 2008 Beans 2 Re: Pcap.h no such file and directory anyone get ideas? Adv Reply April 18th, 2010 #3 bravishanker3 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Apr 2010 Beans 1 Re: Pcap.h no such file and directory I had your problem and when I tried sudo apt-get install libpcap0.8-dev it worked! If you have nt tried this may be you would want to try Adv Reply October 9th, 2010 #4 pragya View Profile View Forum Posts Private Message Spilled the Beans Join Date Sep 2010 Beans 13 Re: Pcap.h no such file and directory thanks! it worked Adv Reply Quick Navigation Networking & Wireless Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu General Help Asus Ubuntu Support (CLOSED) Dell Ubuntu Support (CLOSED) Ubuntu One (CLOSED) Installation & Upgrades Hardware Desktop Environments Ne