DINKIN / coreemu

Automatically exported from code.google.com/p/coreemu
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Cannot find lpcap #270

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi 
I creating symbolic link and complied the makefile.linux

but following error is showing

sudhakar@sudhakar-Aspire-E1-570:~/Desktop/mgen/makefiles$ make -f 
Makefile.linux mgen
g++ -g -g -DPROTO_DEBUG -DHAVE_GPS -DUNIX -Wall -Wcast-align -pedantic -fPIC 
-DLINUX -DHAVE_PSELECT -DHAVE_SCHED -DHAVE_IPV6 -DHAVE_GETLOGIN -DHAVE_LOCKF 
-DHAVE_DIRFD -DHAVE_ASSERT  -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include  
-I../makefiles -I../include -I../protolib/include -o mgen 
../src/common/mgenApp.o  ../src/common/mgen.o ../src/common/mgenEvent.o 
../src/common/mgenFlow.o ../src/common/mgenMsg.o ../src/common/mgenTransport.o 
../src/common/mgenPattern.o ../src/common/mgenPayload.o 
../src/common/mgenSequencer.o ../src/common/gpsPub.o 
../src/common/mgenAppSinkTransport.o -L/usr/X11R6/lib  
../protolib/lib/libprotokit.a -ldl -lpthread -lpcap -lm  
/usr/bin/ld: cannot find -lpcap
collect2: error: ld returned 1 exit status
make: *** [mgen] Error 1

Help !!

Original issue reported on code.google.com by sudhakar...@gmail.com on 24 Nov 2014 at 6:39

GoogleCodeExporter commented 8 years ago
This seems to be an issue with building mgen and not directly related to CORE.

On Ubuntu, this might be resolved by installing the libpcap-dev package:

    apt-get install libpcap-dev

Original comment by tgo...@gmail.com on 28 Jan 2015 at 10:45