PentestBox / tracker

3 stars 2 forks source link

Error install bundler #100

Open Blannk opened 6 years ago

Blannk commented 6 years ago

Hello, i try install bundler to use metasploit but have this error:

`Using net-ssh 4.2.0 (was 3.2.0) Using network_interface 0.0.2 (was 0.0.1) Using sawyer 0.7.0 Using octokit 4.3.0 Using openssl-ccm 1.2.1 Fetching pcaprub 0.12.4 Installing pcaprub 0.12.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

C:/PentestBox/base/ruby/bin/ruby.exe -r ./siteconf20171128-2540-1mb58bd.rb extconf.rb

[*] Running checks for pcaprub_c code... platform is i386-mingw32 checking for main() in -lws2_32... yes checking for main() in -liphlpapi... yes checking for windows.h... yes checking for winsock2.h... yes checking for iphlpapi.h... yes 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 -lwpcap... no checking for pcap_setnonblock() in -lwpcap... no creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" generating pcaprub_c-i386-mingw32.def compiling pcaprub.c pcaprub.c:11:18: fatal error: pcap.h: No such file or directory compilation terminated. make: *** [pcaprub.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/PentestBox/base/ruby/lib/ruby/gems/2.2.0/gems/pcaprub-0.12.4 for inspection. Results logged to C:/PentestBox/base/ruby/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/pcaprub-0.12.4/gem_make.out

An error occurred while installing pcaprub (0.12.4), and Bundler cannot continue. Make sure that gem install pcaprub -v '0.12.4' succeeds before bundling.

In Gemfile: metasploit-framework was resolved to 4.12.20, which depends on packetfu was resolved to 1.1.13, which depends on pcaprub`

How to fix it? Thanks!