KINGSABRI / hacker-gems

Hacker-gems installs most needed gems for hackers
MIT License
12 stars 4 forks source link

error during installation #1

Open KINGSABRI opened 7 years ago

KINGSABRI commented 7 years ago
#######################################################

The bcrypt-ruby gem has changed its name to just bcrypt.  Instead of
installing `bcrypt-ruby`, you should install `bcrypt`.  Please update your
dependencies accordingly.

#######################################################

Successfully installed bcrypt-ruby-3.1.5
Fetching: dm-types-1.2.2.gem (100%)
Successfully installed dm-types-1.2.2
Fetching: data_objects-0.10.17.gem (100%)
Successfully installed data_objects-0.10.17
Fetching: dm-do-adapter-1.2.0.gem (100%)
Successfully installed dm-do-adapter-1.2.0
Fetching: do_sqlite3-0.10.17.gem (100%)
Building native extensions.  This could take a while...
Successfully installed do_sqlite3-0.10.17
Fetching: dm-sqlite-adapter-1.2.0.gem (100%)
Successfully installed dm-sqlite-adapter-1.2.0
Fetching: ronin-1.5.0.gem (100%)
*************************************************************************

  Thank you for installing Ronin!

  To start the Ronin Console:

      $ ronin

  To list the available commands:

      $ ronin help

  Additional functionality can be added to Ronin by installing additional
  libraries:

      * ronin-gen
      * ronin-web
      * ronin-exploits
      * ronin-scanners

*************************************************************************
Successfully installed ronin-1.5.0
Fetching: libxml-ruby-3.0.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing hacker-gems:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.4.0/gems/libxml-ruby-3.0.0/ext/libxml
/usr/bin/ruby2.4 -r ./siteconf20171124-27252-1yw0ggo.rb extconf.rb
/usr/bin/ruby2.4: warning: shebang line ends with \r may cause a problem
checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... no
*** 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.4
        --with-xml2-config
        --without-xml2-config
        --with-xml2-dir
        --without-xml2-dir
        --with-xml2-include
        --without-xml2-include=${xml2-dir}/include
        --with-xml2-lib
        --without-xml2-lib=${xml2-dir}/lib
 extconf failure: need libxml2.

    Install the library or try one of the following options to extconf.rb:

      --with-xml2-config=/path/to/xml2-config
      --with-xml2-dir=/path/to/libxml2
      --with-xml2-lib=/path/to/libxml2/lib
      --with-xml2-include=/path/to/libxml2/include

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.4.0/extensions/x86_64-linux/2.4.0/libxml-ruby-3.0.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.4.0/gems/libxml-ruby-3.0.0 for inspection.
Results logged to /var/lib/gems/2.4.0/extensions/x86_64-linux/2.4.0/libxml-ruby-3.0.0/gem_make.out
JeanHuit commented 6 years ago

The error during installation I had was with "tidy_tds". But this was because I was running on MacOs X. Solution was to install tiny_tids via homebrew - > brew install freetds After which I ran gem install hacker-gems again. No more errors.

KINGSABRI commented 6 years ago

Thank you, this fix it no doubt for MacOS