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

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 ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×110
×37
×9
×3

question asked: 07 Jul '17, 01:46

question was seen: 1,165 times

last updated: 11 Jul '17, 19:19

p​o​w​e​r​e​d by O​S​Q​A