2016-08-31 1 views
-2

Metasploitは今朝までmsfupdateにアップデートしてから、すべてがうまくいっていました。私が行って、bundle installを入力Metasploit Update:バンドルインストールでエラーが発生しました(nokogiri 1.6.8)

Could not find nokogiri-1.6.8 in any of the sources 
Run bundle install to install missing gems. 

msfconsoleを入力すると、今私は、このエラーが発生します。これが起こったまでそれは罰金つもりだった:

Installing nokogiri 1.6.8 with native extensions 
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 
/usr/bin/ruby2.2 -r ./siteconf20160831-24032-1wim46x.rb extconf.rb --use-system-libraries 
Using pkg-config version 1.1.7 
checking if the C compiler accepts ... yes 
Building nokogiri using system libraries. 
checking for libxml-2.0... no 
checking for libxslt... no 
checking for libexslt... no 
ERROR: cannot discover where libxml2 is located on your system. please make sure pkg-config is installed. 
* extconf.rb failed * 
Could not create Makefile due to some reason, probably lack of necessary 
libraries and/or headers. Check the mkmf.log file for more details. You 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=/usr/bin/$(RUBY_BASE_NAME)2.2 
    --help 
    --clean 
    --use-system-libraries 
    --with-zlib-dir 
    --without-zlib-dir 
    --with-zlib-include 
    --without-zlib-include=${zlib-dir}/include 
    --with-zlib-lib 
    --without-zlib-lib=${zlib-dir}/lib 
    --with-xml2-dir 
    --without-xml2-dir 
    --with-xml2-include 
    --without-xml2-include=${xml2-dir}/include 
    --with-xml2-lib 
    --without-xml2-lib=${xml2-dir}/lib 
    --with-libxml-2.0-config 
    --without-libxml-2.0-config 
    --with-pkg-config 
    --without-pkg-config 
    --with-pkg-config 
    --without-pkg-config 
    --with-override-variables 
    --without-override-variables 
    --with-xslt-dir 
    --without-xslt-dir 
    --with-xslt-include 
    --without-xslt-include=${xslt-dir}/include 
    --with-xslt-lib 
    --without-xslt-lib=${xslt-dir}/lib 
    --with-libxslt-config 
    --without-libxslt-config 
    --with-pkg-config 
    --without-pkg-config 
    --with-exslt-dir 
    --without-exslt-dir 
    --with-exslt-include 
    --without-exslt-include=${exslt-dir}/include 
    --with-exslt-lib 
    --without-exslt-lib=${exslt-dir}/lib 
    --with-libexslt-config 
    --without-libexslt-config 
    --with-pkg-config 
    --without-pkg-config 

extconf failed, exit code 1 

Gem files will remain installed in /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/gems/nokogiri-1.6.8 for inspection. 
Results logged to /usr/share/metasploit-framework/vendor/bundle/ruby/2.2.0/extensions/x86-linux/2.2.0/nokogiri-1.6.8/gem_make.out 
Using rack-test 0.6.3 
Using faraday 0.9.2 
Using jsobfu 0.4.1 
Using packetfu 1.1.11 
Using rex-arch 0.1.1 
Using rex-ole 0.1.2 
Using rex-random_identifier 0.1.0 
Using rex-zip 0.1.0 
Using simplecov 0.12.0 
Using activesupport 4.2.7.1 
Using tzinfo-data 1.2016.6 
An error occurred while installing nokogiri (1.6.8), and Bundler cannot 
continue. 
Make sure that gem install nokogiri -v '1.6.8' succeeds before bundling. 

を私は探し始めたと私は、再び何もbundle config build.nokogiri --use-system-libraries

を実行していない。しかしべきであると提案しthis、出くわしました。私もgem install nokogiri -v 1.6.8を試しました。私も古いバージョンを試しました:gem install nokogiri -v 1.6.0

私はカリを使用しています。


EDIT:私は解決策は、私はカーリーを再インストールする必要があることだと思います。私はこのすべてから学んだことの一つは、NEVER更新MSFにある:RUser98 @ D

+0

gemfileとrubyのバージョンはここで教えてください。 –

+0

@SantoshSharmaこれを行う方法はわかりません(初心者です)、どうすればいいか教えていただけますか? –

+0

こちらのリンクをご覧ください。その質問でgemfileが利用可能です –

答えて

1

-

私は多分それはあなたを助けるUnixのスタックExchangeサイトでこの答えを見つけましたか?

If you get a error installing nokogiri-1.6.8 try to:

sudo apt-get install libxslt-dev libxml2-dev zlib1g-dev --yes 

出典: https://unix.stackexchange.com/a/298159

私も持っていた/インストールカーリーに新しいたびに何かをMetasploitのを更新すると、多くの問題は、私はあなたの痛みを感じる

+0

これは 'bundle install'がうまく動作するために投票されましたが、' msfconsole'を実行してもまだエラーが発生しています –

+0

どのようなエラーが表示されますか? – BanjoFox

+0

決してあなたは私がそれを解決したと思う:D –

2

あなたは上でこの問題を抱えている場合NokogiriをインストールしようとしているMacOSなら、xcode-select --installを実行してもう一度やり直すことができます:)

関連する問題