-1

I am trying to install dradis community edition for Kali linux through this website:

https://dradisframework.com/ce/documentation/install_kali.html

and

https://dradisframework.com/ce/documentation/install_git.html

when I run the command:

./bin/setup

I am getting the following error:

== Enabling default add-ons ==
== Installing dependencies ==
Traceback (most recent call last):
    1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.17.3/exe/bundle (LoadError)
Traceback (most recent call last):
    1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.17.3/exe/bundle (LoadError)

== Command ["bundle install"] failed ==

This is happening on all bundle commands like

bundle -v

bundle install

What could be causing this? I am new to this.

Update 1:

I tried gem update --system and tried the ./bin/setup again. It gives me the following error:

Fetching nokogumbo 2.0.1
Installing nokogumbo 2.0.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /root/dradis-ce/gems/nokogumbo-2.0.1/ext/nokogumbo
/usr/bin/ruby2.5 -I /usr/local/lib/site_ruby/2.5.0 -r ./siteconf20190224-6660-1caz3w7.rb extconf.rb
*** 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.5
/usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'nokogiri' (= 1.8.4) - did find: [nokogiri-1.8.5]
(Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/dradis-ce', execute `gem env` for more information
    from /usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:323:in `to_spec'
    from /usr/local/lib/site_ruby/2.5.0/rubygems/specification.rb:1033:in `find_by_name'
    from extconf.rb:9:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /root/dradis-ce/gems/nokogumbo-2.0.1 for inspection.
Results logged to /root/dradis-ce/extensions/x86_64-linux/2.5.0/nokogumbo-2.0.1/gem_make.out

An error occurred while installing nokogumbo (2.0.1), and Bundler cannot continue.
Make sure that `gem install nokogumbo -v '2.0.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  sanitize was resolved to 5.0.0, which depends on
    nokogumbo

== Command ["bundle install"] failed ==
JOKER
  • 73
  • 10

1 Answers1

1

As you can see the error is throwing while executing bundle install. So I would suggest you to update you gem by executing gem update --system

Edit:

The second error is throwing because nokogiri gem is not installed.
To install execute gem install nokogiri

Community
  • 1
  • 1
Pushpam Kumar
  • 132
  • 1
  • 11
  • I tried and it run the command. But it gave me a different error after a while. I updated my post. – JOKER Feb 24 '19 at 20:29
  • Can you check this answer https://stackoverflow.com/questions/18094564/unable-to-install-rails-extconf-rb-failed – Pushpam Kumar Feb 24 '19 at 20:34
  • I did. However, the question was installing in macOS. I am trying on Kali linux and I keep getting the error. – JOKER Feb 24 '19 at 21:11
  • Did you install all the dependencies before executing `./bin/setup`? – Pushpam Kumar Feb 25 '19 at 10:49
  • i followed the instructions: first, `apt-get install libsqlite3-dev` `apt-get install libmariadbclient-dev-compat` `apt-get install mariadb-client-10.1 ` `apt-get install mariadb-server-10.1` Which failed with above mentioned error. Then I tried the troubleshooting by `bundle install --path /usr/lib/dradis-ce/` also gives the error. – JOKER Feb 25 '19 at 13:14
  • On which dependency you got the error? How many dependencies were you able to install? – Pushpam Kumar Feb 25 '19 at 15:39
  • 1
    I am gonna post a new question with the error. @Pushpam Kumar – JOKER Feb 25 '19 at 23:26
  • 1
    I accepted your answer as it solved my initial problem. – JOKER Feb 25 '19 at 23:26
  • hey, the problem is you don't have `nokogiri` gem. Install this gem, then it should work fine. Installation guide: https://nokogiri.org/tutorials/installing_nokogiri.html – Pushpam Kumar Feb 26 '19 at 16:50