LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-27-2008, 02:53 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Why can't snort's configure/make find pcap.h?


Snort compiles ok, but when I run make it gives the error:
snort_dcerpc.c:38:18: error: pcap.h: No such file or directory

But libpcap is installed and pcap.h is in /usr/include/pcap:
/usr/include/pcap/pcap.h

I installed the RPM of snort, but I am compiling it from source because it needs the mysql option for the BASE GUI.

I also added /usr/include/pcap to $PATH tried a make clean and then configured again.

Any ideas?

TIA!
 
Old 04-27-2008, 04:50 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by abefroman View Post
I also added /usr/include/pcap to $PATH tried a make clean and then configured again.
Includes can be added to './configure', check for something like "--with-includes=". If it doesn't pick up those (would be odd) you can 'export CFLAGS=-I/path/to/includes' before running './configure'.
 
Old 04-27-2008, 05:59 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
I removed the rpm and installed libpcap from csource.

I think you way would have worked too.
 
Old 06-27-2008, 06:26 PM   #4
SupermanInNY
Member
 
Registered: Jan 2006
Distribution: CentOS
Posts: 30

Rep: Reputation: 15
To resolve the problem with pcap.h

From CentOS 5 Forum:

http://www.centos.org/modules/newbb/...forumpost31448

yum install libpcap libpcap-devel



Don't forget to install the libpcap-devel

yum install libpcap-devel

This will solve the problem.


-Sup.
 
Old 06-28-2008, 10:41 AM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
THanks! That was it, I was forgetting the devel.
 
  


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
configure: error: Header file pcap.h not found; when tried installing ethereal networ ssangeetha Linux - Software 6 05-02-2013 12:28 PM
Importing Snort's tcpdump into mysql toraghun Linux - Security 0 07-12-2006 08:06 AM
Snort's Flow Control options OlRoy Linux - Security 2 05-28-2004 02:43 PM
snort's reporting Bad traffic... TheIrish Linux - Security 4 12-02-2003 08:53 PM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM

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

All times are GMT -5. The time now is 04:06 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
Open Source Consulting | Domain Registration