ruby - how to fix install network_interface gem on windows -
when want run msfconsole see error :
f:\metasploit\apps\pro\msf3>ruby msfconsole not find network_interface-0.0.1 in of sources run
bundle install
install missing gems.
when execute 'bundle' install :
f:\metasploit\apps\pro\msf3>bundle install fetching gem metadata https://rubygems.org/......... fetching version metadata https://rubygems.org/.. resolving dependencies..... using rake 10.4.2 using i18n 0.6.11 using multi_json 1.0.4 using activesupport 3.2.21 using builder 3.0.4 using activemodel 3.2.21 using erubis 2.7.0 using journey 1.0.4 using rack 1.4.5 using rack-cache 1.2 using rack-test 0.6.2 using hike 1.2.3 using tilt 1.4.1 using sprockets 2.2.3 using actionpack 3.2.21 using mime-types 1.25.1 using polyglot 0.3.5 using treetop 1.4.15 using mail 2.5.4 using actionmailer 3.2.21 using arel 3.0.3 using tzinfo 0.3.42 using activerecord 3.2.21 using activeresource 3.2.21 using arel-helpers 2.1.0 using ffi 1.9.3 using childprocess 0.5.3 using diff-lcs 1.2.5 using json 1.8.1 using gherkin 2.11.6 using cucumber 1.2.1 using rspec-expectations 2.99.2 using aruba 0.6.1 using bcrypt 3.1.10 using bundler 1.9.0 using mini_portile 0.6.1 using nokogiri 1.6.5 using xpath 2.0.0 using capybara 2.4.1 using coderay 1.1.0 using rack-ssl 1.3.4 using rdoc 3.12.2 using thor 0.19.1 using railties 3.2.21 using rails 3.2.21 using cucumber-rails 1.4.0 using factory_girl 4.4.0 using factory_girl_rails 4.4.1 using fivemat 1.2.1 using rkelly-remix 0.0.6 using jsobfu 0.2.1 using metasploit-concern 0.3.0 using metasploit-model 0.29.0 using pg 0.18.1 using recog 1.0.16 using metasploit_data_models 0.22.8 using rubyntlm 0.4.0 using rubyzip 1.1.7 using metasploit-credential 0.13.19 using meterpreter_bins 0.0.14 using msgpack 0.5.11 using packetfu 1.1.9 using robots 0.10.1 using sqlite3 1.3.10 using metasploit-framework 4.11.0.pre.dev source @ . using metasploit-framework-db 4.11.0.pre.dev source @ . gem::ext::builderror: error: failed build gem native extension. f:/metasploit/ruby/bin/ruby.exe -r ./siteconf20150321-6764-d3wiyv.rb extcon .rb [*] running checks netifaces code... checking main() in -lws2_32... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=f:/metasploit/ruby/bin/ruby --with-ws2_32lib --without-ws2_32lib f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': compiler failed o generate executable file. (runtimeerror) have install development tools first. f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:556:in `try_link' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:742:in `try_func' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:973:in `block in have_li rary' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:918:in `block in checkin _for' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:321:in `open' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpon ' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:321:in `open' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:347:in `postpone' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for' f:/metasploit/ruby/lib/ruby/2.1.0/mkmf.rb:968:in `have_library' extconf.rb:17:in `<main>' extconf failed, exit code 1 gem files remain installed in f:/metasploit/ruby/lib/ruby/gems/2.1.0/gems/ etwork_interface-0.0.1 inspection. results logged f:/metasploit/ruby/lib/ruby/gems/2.1.0/extensions/x86-mingw32 2.1.0/network_interface-0.0.1/gem_make.out error occurred while installing network_interface (0.0.1), , bundler canno continue. make sure `gem install network_interface -v '0.0.1'` succeeds before bundling. f:\metasploit\apps\pro\msf3>
how can fix error? thanks
- cd /usr/share/metasploit-framework
- apt-get install postgresql-server-dev-all
- apt-get install libsqlite3-dev
- gem install pg -v 0.18.1
- bundle install
Comments
Post a Comment