Metasploit framework error
I am using kali Linux 2019.2 and I need to install Metasploit-framework from GitHub when I use bundle install command this error returns please if someone knew this error get me a quick answer
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 gem metadata from
https://rubygems.org/.
Resolving dependencies........................................................................................ .....................
Using rake 12.3.2
Fetching Ascii85 1.0.3
Installing Ascii85 1.0.3
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Using minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching activesupport 4.2.11.1
Installing activesupport 4.2.11.1
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching nokogiri 1.10.3
Installing nokogiri 1.10.3 with native extensions
Fetching rails-deprecated_sanitizer 1.0.3
Installing rails-deprecated_sanitizer 1.0.3
Fetching rails-dom-testing 1.0.9
Installing rails-dom-testing 1.0.9
Fetching crass 1.0.4
Installing crass 1.0.4
Fetching loofah 2.2.3
Installing loofah 2.2.3
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching actionview 4.2.11.1
Installing actionview 4.2.11.1
Fetching rack 1.6.11
Installing rack 1.6.11
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching actionpack 4.2.11.1
Installing actionpack 4.2.11.1
Fetching activemodel 4.2.11.1
Installing activemodel 4.2.11.1
Fetching arel 6.0.4
Installing arel 6.0.4
Fetching activerecord 4.2.11.1
Installing activerecord 4.2.11.1
Fetching public_suffix 3.1.0
Installing public_suffix 3.1.0
Fetching addressable 2.6.0
Installing addressable 2.6.0
Fetching afm 0.2.2
Installing afm 0.2.2
Fetching arel-helpers 2.9.1
Installing arel-helpers 2.9.1
Fetching backports 3.15.0
Installing backports 3.15.0
Fetching bcrypt 3.1.13
Installing bcrypt 3.1.13 with native extensions
Fetching bcrypt_pbkdf 1.0.1
Installing bcrypt_pbkdf 1.0.1 with native extensions
Fetching bindata 2.4.4
Installing bindata 2.4.4
Fetching bit-struct 0.16
Installing bit-struct 0.16
Using bundler 1.17.3
Fetching coderay 1.1.2
Installing coderay 1.1.2
Fetching cookiejar 0.3.3
Installing cookiejar 0.3.3
Fetching daemons 1.3.1
Installing daemons 1.3.1
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching dnsruby 1.61.2
Installing dnsruby 1.61.2
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching ed25519 1.2.4
Installing ed25519 1.2.4 with native extensions
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Fetching em-socksify 0.3.2
Installing em-socksify 0.3.2
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-http-request 1.1.5
Installing em-http-request 1.1.5
Fetching factory_bot 5.0.2
Installing factory_bot 5.0.2
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching railties 4.2.11.1
Installing railties 4.2.11.1
Fetching factory_bot_rails 5.0.2
Installing factory_bot_rails 5.0.2
Fetching faker 1.9.3
Installing faker 1.9.3
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching faraday 0.15.4
Installing faraday 0.15.4
Fetching filesize 0.2.0
Installing filesize 0.2.0
Fetching fivemat 1.3.7
Installing fivemat 1.3.7
Fetching hashery 2.1.2
Installing hashery 2.1.2
Fetching rkelly-remix 0.0.7
Installing rkelly-remix 0.0.7
Fetching jsobfu 0.4.2
Installing jsobfu 0.4.2
Fetching json 2.2.0
Installing json 2.2.0 with native extensions
Fetching metasm 1.0.4
Installing metasm 1.0.4
Fetching metasploit-concern 2.0.5
Installing metasploit-concern 2.0.5
Fetching metasploit-model 2.0.4
Installing metasploit-model 2.0.4
Fetching pg 0.21.0
Installing pg 0.21.0 with native extensions
Fetching pg_array_parser 0.0.9
Installing pg_array_parser 0.0.9 with native extensions
Fetching postgres_ext 3.0.1
Installing postgres_ext 3.0.1
Fetching recog 2.3.2
Installing recog 2.3.2
Fetching metasploit_data_models 3.0.10
Installing metasploit_data_models 3.0.10
Fetching net-ssh 5.2.0
Installing net-ssh 5.2.0
Fetching rex-core 0.1.13
Installing rex-core 0.1.13
Fetching rex-socket 0.1.17
Installing rex-socket 0.1.17
Fetching rubyntlm 0.6.2
Installing rubyntlm 0.6.2
Fetching rubyzip 1.2.3
Installing rubyzip 1.2.3
Fetching metasploit-credential 3.0.3
Installing metasploit-credential 3.0.3
Fetching metasploit-payloads 1.3.70
Installing metasploit-payloads 1.3.70
Fetching metasploit_payloads-mettle 0.5.16
Installing metasploit_payloads-mettle 0.5.16
Fetching mqtt 0.5.0
Installing mqtt 0.5.0
Fetching msgpack 1.2.10
Installing msgpack 1.2.10 with native extensions
Fetching nessus_rest 0.1.6
Installing nessus_rest 0.1.6
Fetching network_interface 0.0.2
Installing network_interface 0.0.2 with native extensions
Fetching nexpose 7.2.1
Installing nexpose 7.2.1
Fetching sawyer 0.8.2
Installing sawyer 0.8.2
Fetching octokit 4.14.0
Installing octokit 4.14.0
Fetching openssl-ccm 1.2.2
Installing openssl-ccm 1.2.2
Fetching openvas-omp 0.0.4
Installing openvas-omp 0.0.4
Fetching pcaprub 0.13.0
Installing pcaprub 0.13.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/pcaprub-0.13.0/ext/pcaprub_c
/root/.rbenv/versions/2.6.2/bin/ruby -I
/root/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0 -r
./siteconf20190615-4870-1s6ukbc.rb extconf.rb
[*] Running checks for pcaprub_c code...
platform is x86_64-linux
checking for ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile
current directory:
/root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/pcaprub-0.13.0/ext/pcaprub_c
make "DESTDIR=" clean
current directory:
/root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/pcaprub-0.13.0/ext/pcaprub_c
make "DESTDIR="
compiling pcaprub.c
pcaprub.c:11:10: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^~~~~~~~
compilation terminated.
make: *** [Makefile:244: pcaprub.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/pcaprub-0.13.0 for
inspection.
Results logged to
/root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0-static/pcaprub-0.13.0/gem_make.out
An error occurred while installing pcaprub (0.13.0), and Bundler cannot
continue.
Make sure that `gem install pcaprub -v '0.13.0' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
metasploit-framework was resolved to 5.0.29, which depends on
packetfu was resolved to 1.1.13, which depends on
pcaprub