==> Creating clean working copy [build]...done ==> Making package: bettercap 1.5.1-1 (Sat Mar 19 07:52:09 EDT 2016) ==> Retrieving sources... -> Found bettercap-1.5.1.tar.gz ==> Validating source files with sha512sums... bettercap-1.5.1.tar.gz ... Passed resolving dependencies... looking for conflicting packages... Packages (3) libyaml-0.1.6-1 ruby-2.3.0-2 ruby-bundler-1.11.2-1 Total Download Size: 5.18 MiB Total Installed Size: 23.76 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... downloading libyaml-0.1.6-1-i686.pkg.tar.xz... downloading ruby-2.3.0-2-i686.pkg.tar.xz... downloading ruby-bundler-1.11.2-1-any.pkg.tar.xz... checking keyring... checking package integrity... loading package files... checking for file conflicts... checking available disk space... :: Processing package changes... installing libyaml... installing ruby... The default location of gem installs is $HOME/.gem/ruby Add the following line to your PATH if you plan to install using gem $(ruby -rubygems -e "puts Gem.user_dir")/bin If you want to install to the system wide location, you must either: edit /etc/gemrc or run gem with the --no-user-install flag. Optional dependencies for ruby ruby-docs: Ruby documentation tk: for Ruby/TK installing ruby-bundler... Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/........... Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies... Installing colorize 0.7.7 Installing eventmachine 1.2.0.1 (was 1.0.8) with native extensions Installing net-dns 0.8.0 Installing network_interface 0.0.1 with native extensions Installing pcaprub 0.12.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /build/bettercap/pkg/bettercap/usr/share/bettercap/vendor/bundle/ruby/2.3.0/gems/pcaprub-0.12.1/ext/pcaprub_c /usr/bin/ruby -r ./siteconf20160319-400-1n3065v.rb extconf.rb [*] Running checks for pcaprub_c code... platform is i686-linux checking for pcap_open_live() in -lpcap... no checking for pcap_setnonblock() in -lpcap... no creating Makefile To see why this extension failed to compile, please check the mkmf.log which can be found here: /build/bettercap/pkg/bettercap/usr/share/bettercap/vendor/bundle/ruby/2.3.0/extensions/x86-linux/2.3.0/pcaprub-0.12.1/mkmf.log current directory: /build/bettercap/pkg/bettercap/usr/share/bettercap/vendor/bundle/ruby/2.3.0/gems/pcaprub-0.12.1/ext/pcaprub_c make "DESTDIR=" clean current directory: /build/bettercap/pkg/bettercap/usr/share/bettercap/vendor/bundle/ruby/2.3.0/gems/pcaprub-0.12.1/ext/pcaprub_c make "DESTDIR=" compiling pcaprub.c pcaprub.c:8:18: fatal error: pcap.h: No such file or directory compilation terminated. Makefile:238: recipe for target 'pcaprub.o' failed make: *** [pcaprub.o] Error 1 make failed, exit code 2 Gem files will remain installed in /build/bettercap/pkg/bettercap/usr/share/bettercap/vendor/bundle/ruby/2.3.0/gems/pcaprub-0.12.1 for inspection. Results logged to /build/bettercap/pkg/bettercap/usr/share/bettercap/vendor/bundle/ruby/2.3.0/extensions/x86-linux/2.3.0/pcaprub-0.12.1/gem_make.out Installing hitimes 1.2.3 with native extensions Installing nio4r 1.2.1 (was 1.2.0) with native extensions Using bundler 1.11.2 Installing em-proxy 0.1.8 An error occurred while installing pcaprub (0.12.1), and Bundler cannot continue. Make sure that `gem install pcaprub -v '0.12.1'` succeeds before bundling. checking dependencies... Packages (3) libyaml-0.1.6-1 ruby-2.3.0-2 ruby-bundler-1.11.2-1 Total Removed Size: 23.76 MiB :: Do you want to remove these packages? [Y/n] :: Processing package changes... removing ruby-bundler... removing ruby... removing libyaml... ==> ERROR: Build failed, check /chroot/i686/build/build