Metasploit-framework: GRPC Bug when installing

Created on 1 Jul 2017  路  7Comments  路  Source: rapid7/metasploit-framework

Steps to reproduce

How'd you do it?

  1. apt-get install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev locate libreadline6-dev libcurl4-openssl-dev git-core libssl-dev libyaml-dev openssl autoconf libtool ncurses-dev bison curl wget postgresql postgresql-contrib libpq-dev libapr1 libaprutil1 libsvn1 libpcap-dev

  2. apt-get install git-core postgresql curl ruby1.9.3 nmap

  3. cd opt

  4. git clone https://github.com/rapid7/metasploit-framework.git
  5. cd metasploit-framework
  6. bundle install
    Here's where all the problems occur and I've managed to install some dependencies not listed such as nokogiri which I installed by typing in:

sudo gem install nokogiri

After that I tried to bundle again the program gets stuck at Fetching and Installing grpc 1.4.0 and says bundled cannot continue. Make sure gems install grpc -v 1.4.0 success before bundling.

  1. When I try to sudo gem install grpc it returns an error message.

If you need information about why these tests failed, run:

make run_dep_checks

make: Leaving directory '/var/lib/gems/2.3.0/gems/grpc-1.4.1'
* extconf.rb failed *
Could not create Makefile due to some reason, probably lack of necess
ary
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.3

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/grpc-1.4.
1 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/arm-linux/2.3.0/grpc
-1.4.1/gem_make.out

Any help would be great 馃憤

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.

System stuff

Arm-Kali-Linux Ruby 2.3.3p222

Metasploit version

git cloned from this repo

I installed Metasploit with:

  • [ x] Kali package via apt
  • [ ] Omnibus installer (nightly)
  • [ ] Commercial/Community installer (from http://www.rapid7.com/products/metasploit/download.jsp)
  • [ ] Source install (please specify ruby version)

OS

What OS are you running Metasploit on?
Rolling Kali Linux Raspberry Pi3

All 7 comments

can confirm i am having the same issues (albeit with additional dependencies) I have been able to install grpc 1.4.1 but not 1.4.0 and this does not allow the process to continue.

Are they're any alternative programs or work arounds? Was thinking about downloading Centos and seeing if that OS works, since the arm version of kali seems to be having problems installing this repo?

You could try this (terrible?) workaround: https://github.com/timwr/metasploit-framework/commit/77734f82eee2a46ebc46f646fff5bce433b5bb6f
grpc is needed by the metasploit-aggregator gem, but msfconsole appears to work without it.

You could try this (terrible?) workaround: timwr/metasploit-framework@77734f8

can confirm commenting the line out did allow the successful completion of bundle install. Obviously it would be better to have this resolved long term and heres hoping for that around the corner.

its still an issue though that GRPC doesnt allow the install instructions to complete. it shouldnt be closed. the issue is still an issue - this is purely a workaround.

Could you raise this issue on the https://github.com/grpc/grpc repository please? That's where the fix needs to occur. This is the error I get on termux, feel free to include it:
https://pastebin.com/2bbjyvLQ

any clue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adrianmihalko picture adrianmihalko  路  3Comments

Acidical picture Acidical  路  3Comments

fluit105 picture fluit105  路  3Comments

miholtz picture miholtz  路  3Comments

Sonya2010 picture Sonya2010  路  3Comments