LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2019, 12:34 AM   #1
vagisomalia
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
Installing metasploit


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
 
Old 06-15-2019, 02:35 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,222

Rep: Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968Reputation: 5968
Quote:
Originally Posted by vagisomalia View Post
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
If you're looking for a 'quick answer', then why didn't you bother to read the forum rules?? You re-opened an old thread, and hijacked it with a totally non-related question. You are also asking volunteers to hurry up and answer you, which is plain rude.

Did you read the many sticky-posts about Kali Linux? Kali's website? Where it tells you what Kali is, what it's designed for, and who should use it?? It's for experienced Linux users, and even then only for security/pentesting. And did you actually READ the error you posted???
Quote:
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.
It's specifically telling you NOT to run that as root, as it will break things.

Open your own thread for your own question.
 
1 members found this post helpful.
Old 06-15-2019, 03:46 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,171
Blog Entries: 9

Rep: Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605Reputation: 3605
Quote:
Originally Posted by TB0ne View Post
Open your own thread for your own question.
apparently somebody split it off.

Quote:
Originally Posted by vagisomalia View Post
I need to install Metasploit-framework from GitHub
why do you "need" to do this? Isn't the whole point of Kali Linux that it comes bundled with a whole lot of pentesting tools.
Quote:
get me a quick answer
erm.
I'm just goint to let that one slide...




Quote:
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.
you should interpret this message in light of the fact that Kali Linux runs as root by default.

Quote:
compiling pcaprub.c
pcaprub.c:11:10: fatal error: pcap.h: No such file or directory
#include <pcap.h>
There's your fatal error.
Since you are an advanced Linux user (why else would you run Kali Linux, and choose to compile things from source), it shouldn't be hard for you to figure that dependency out.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Metasploit 3.0 doesn't pwn systems, black hats pwn systems LXer Syndicated Linux News 0 05-04-2007 10:01 PM
metasploit dellthinker Linux - Software 0 01-21-2007 06:49 PM
Metasploit & Nessus games1 Linux - Software 1 10-05-2006 06:24 AM
LXer: Fear the Metasploit Framework LXer Syndicated Linux News 0 09-27-2006 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration