Already installed wireshark in my linux box, also able to create makefile; but when I try to make it. It gives error like-
$make
rm -f blib/arch/auto/Wtap/Wtap.so
cc -shared -O2 -g -L/usr/local/lib -fstack-protector Wtap.o -o blib/arch/auto/Wtap/Wtap.so \
-L/usr/lib/wireshark -lwiretap \
/usr/bin/ld: cannot open output file blib/arch/auto/Wtap/Wtap.so: Permission denied
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Wtap/Wtap.so] Error 1
also, sudo does not resolve error
$sudo make
chmod 644 Wtap.bs
rm -f blib/arch/auto/Wtap/Wtap.so
cc -shared -O2 -g -L/usr/local/lib -fstack-protector Wtap.o -o blib/arch/auto/Wtap/Wtap.so \
-L/usr/lib/wireshark -lwiretap \
/usr/bin/ld: cannot find -lwiretap
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Wtap/Wtap.so] Error 1
I searched in my linuxbox to find libwiretap.so. It resides within /usr/lib.
Can anyone direct me in order to resolve this error ! Thanks
Install
wireshark-devel. It contains the headers for the wiretap library.