3
C:\metasploit\apps\pro\msf3\tools>bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.0.4)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using metaclass (0.0.1)
Using mocha (0.13.3)
Using bourne (1.4.0)
Using database_cleaner (0.9.1)
Using diff-lcs (1.2.2)
Using factory_girl (4.2.0)
Using json (1.7.7)
Using pg (0.15.1)
Using metasploit_data_models (0.16.1)
Using msgpack (0.5.4)
Using network_interface (0.0.1)
Using nokogiri (1.5.9)
Using packetfu (1.1.8)
Installing pcaprub (0.11.3)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    C:/Ruby200/bin/ruby.exe extconf.rb

[*] Running checks for pcaprub 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 pcap_open_live() in -lwpcap... no
checking for pcap_setnonblock() in -lwpcap... no
creating Makefile

make "DESTDIR="
generating pcaprub-i386-mingw32.def
compiling pcaprub.c
In file included from C:/WpdPack/include/pcap/pcap.h:41:0,
                 from C:/WpdPack/include/pcap.h:45,
                 from pcaprub.c:8:
C:/WpdPack/include/pcap-stdinc.h:64:0: warning: "snprintf" redefined
c:/Ruby200/include/ruby-2.0.0/ruby/subst.h:6:0: note: this is the location of th
e previous definition
C:/WpdPack/include/pcap-stdinc.h:65:0: warning: "vsnprintf" redefined
c:/Ruby200/include/ruby-2.0.0/ruby/subst.h:7:0: note: this is the location of th
e previous definition
linking shared-object pcaprub.so
gcc.exe: C:/Users/niravzaveri/Downloads/DevKit/link: No such file or directory
gcc.exe: /LIBPATH:C:/WpdPack/lib: Invalid argument
make: *** [pcaprub.so] Error 1


Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/pcaprub-0
.11.3 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/pcaprub-0.11.3/ext/pcaprub
/gem_make.out
An error occurred while installing pcaprub (0.11.3), and Bundler cannot
continue.
Make sure that `gem install pcaprub -v '0.11.3'` succeeds before bundling.

为了在 Win7/32 位上运行 MSF,我只准备了 Ruby200。如果不安装捆绑包,我将无能为力。

我尝试使用以下线程进行安装:http: //blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/392423

我确实安装了一个 pcaprub 0.11.3.a1(根据上面的 url 自己制作的补丁)并且它也可以工作,但是当我执行“捆绑安装”时,它会尝试再次安装 pcaprub 0.11.3!

路径: C:/Users/niravzaveri/Downloads/DevKit/ 已设置,但没有链接文件夹 C:/WpdPack/lib 是有效路径,但它出错的地方不知道。

请让我知道您还需要哪些其他信息来帮助我解决问题。

这是我第一次接触Ruby。

谢谢您的帮助!

4

0 回答 0