[dsc] Compiling Collector under Redhat RHEL 6

Stephen Johnson (DIS) Stephen.Johnson at arkansas.gov
Tue Oct 29 16:55:19 UTC 2013

On Tue, 2013-10-29 at 16:42 +0000, Jake Zack wrote:
> Anyone ever get DSC to compile under RHEL6?
> # make
> (cd dsc; test -s Makefile || ./configure ; make all)
> make[1]: Entering directory `/usr/local/newstuff/dsc-201203250530/collector/dsc'
> cc -g -Wall -DUSE_IPV6=1 -g -O2  -g -Wall -DUSE_IPV6=1 -g -O2     -c -o base64.o base64.c
> cc -g -Wall -DUSE_IPV6=1 -g -O2  -g -Wall -DUSE_IPV6=1 -g -O2     -c -o generic_counter.o generic_counter.c
> cc -g -Wall -DUSE_IPV6=1 -g -O2  -g -Wall -DUSE_IPV6=1 -g -O2     -c -o pcap.o pcap.c
> pcap.c:17:18: error: pcap.h: No such file or directory
> # rpm -qa |grep -i pcap
> libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
> # locate pcap.h
> /usr/local/newstuff/dsc-201203250530/collector/dsc/pcap.h
> /usr/src/kernels/2.6.32-220.el6.x86_64/include/linux/mfd/ezx-pcap.h
> /usr/src/kernels/2.6.32-358.2.1.el6.x86_64/include/linux/mfd/ezx-pcap.h
> If you've had success here, I'd appreciate some guidance.
> This works under FreeBSD...but FreeBSD provides /usr/include/pcap.h and /usr/include/pcap/pcap.h.

Redhat/Fedora splits out the development parts of applications source
code, i.e. include files and library. They put them into a separate rpm
from the base application. It's makes for leaner systems. 

So you need to install the libpcap-devel RPM on the machine you are
compiling it on.

yum install libpcap-devel

> Thanks,
> -Jake
> _______________________________________________
> dsc mailing list
> dsc at measurement-factory.com
> http://www.measurement-factory.com/mailman/listinfo/dsc

Stephen L Johnson  <stephen.johnson at arkansas.gov>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas

More information about the dsc mailing list