This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

building wireshark with libpcap in /opt

0

Hello,

I worked on redhat and try to install wireshark from the sources.

I compiled libpcap 1.8.1 with the following commands :

./configure --prefix=/opt make make install

I configured wireshark 2.2.7 with the following command line :

./configure --prefix=/opt --sysconfdir=/etc --with-pcap=/opt

with such a configuration, the make command failed several times due to the 'can't find pcap.h' failure. After correcting Makefiles on this point, the linker can't find libpcap binary ...

I had to run the following commands to compile / link the sources without error :

./configure --prefix=/opt --sysconfdir=/etc --with-pcap=/opt find . -name Makefile | xargs sed 's:^\(INCLUDEDIRS .*\):\1 -I/opt/include:' -i sed 's:^\(LDFLAGS .*\):\1 -L/opt/lib:' -i ./Makefile make

Is it possible to 'correct' the configure in order not to have these failures ?

Thanks for your work.

asked 07 Jul '17, 01:46

timy67's gravatar image

timy67
6112
accept rate: 0%

Do you have pcap.h in /opt/include/pcap/pcap.h, and the pcap library (shared or static) in /opt/lib/libpcap.so (shared) or /opt/lib/libpcap.a (static)?

(11 Jul '17, 19:19) Guy Harris ♦♦