Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting hashable-1.3.0.0 Starting integer-logarithms-1.0.3 Starting base-orphans-0.8.1 Starting network-3.1.0.0 Building base-orphans-0.8.1 Building integer-logarithms-1.0.3 Building hashable-1.3.0.0 Completed base-orphans-0.8.1 Starting primitive-0.6.4.0 Completed integer-logarithms-1.0.3 Starting semigroups-0.19 Building primitive-0.6.4.0 Building semigroups-0.19 Building network-3.1.0.0 Completed hashable-1.3.0.0 Starting transformers-compat-0.6.4 Completed semigroups-0.19 Starting unliftio-core-0.1.2.0 Building transformers-compat-0.6.4 Building unliftio-core-0.1.2.0 Completed unliftio-core-0.1.2.0 Completed transformers-compat-0.6.4 Starting transformers-base-0.4.5.2 Starting mmorph-1.1.3 Building mmorph-1.1.3 Building transformers-base-0.4.5.2 Completed transformers-base-0.4.5.2 Starting exceptions-0.10.2 Building exceptions-0.10.2 Completed mmorph-1.1.3 Starting streaming-0.2.2.0 Building streaming-0.2.2.0 Completed network-3.1.0.0 Starting pcap-0.4.5.2 Failed to install pcap-0.4.5.2 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/pcap-0.4.5.2-7dXYhunNRZbRwqHp73B0Y.log ): cabal: Entering directory '/tmp/cabal-tmp-16990/pcap-0.4.5.2' Configuring pcap-0.4.5.2... checking for gcc... /usr/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /usr/bin/gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for struct sockaddr.sa_len... no configure: creating ./config.status config.status: creating pcap.buildinfo config.status: creating include/pcapconfig.h cabal: Missing dependency on a foreign library: * Missing (or bad) header file: pcap.h * Missing (or bad) C library: pcap This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-16990/pcap-0.4.5.2' Completed exceptions-0.10.2 Completed primitive-0.6.4.0 Completed streaming-0.2.2.0 cabal: Error: some packages failed to install: pcap-0.4.5.2-7dXYhunNRZbRwqHp73B0Y failed during the configure step. The exception was: ExitFailure 1 streaming-pcap-1.1.1.1-JNN08nQ4125IISOTKVNclh depends on streaming-pcap-1.1.1.1 which failed to install.