Installing libpcap package in python or pcaprub in ruby

I am fairly new to replit, I was trying to install the libpcap package for python ( or pcaprub for ruby) and it says that the libpcap.so library is missing, even though the package seems to install without problems.
I was wondering if somebody could point to me in the right direction to make this work!