da667 / Autosnort

Repo for autosnort scripts.
MIT License
157 stars 89 forks source link

AutoSnort Fails - Gem::Ext::BuildError: ERROR: Failed to build gem native extension. #37

Open remrem29 opened 9 years ago

remrem29 commented 9 years ago

Autosnort will fail on KALI with this error:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150402-14071-2eiohp.rb extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" compiling generator.c In file included from generator.c:1:0: ../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’: ../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given ../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [enabled by default] make: *\ [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/www/snorby/vendor/bundle/ruby/2.2.0/gems/json-1.7.7 for inspection. Results logged to /var/www/snorby/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.7.7/gem_make.out An error occurred while installing json (1.7.7), and Bundler cannot continue. Make sure that gem install json -v '1.7.7' succeeds before bundling.

peasead commented 9 years ago

Same issue with Ubuntu 14.

I did a little Googling and found a recommendation to install Ruby 1.9.1-dev (apt-get install ruby1.9.1-dev) and then ran gem install json -v 1.7.7. I was able to install Json 1.7.7 according to my output, but when I re-ran the autoinstall script, it died on the same error.

Sorry I don't have any great wisdom...I plan on sending the contents of the autosnorby and autosnort log files into da677.