Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
remrem29 opened this issue Apr 2, 2015 · 1 comment

Comments

@remrem29
Copy link

remrem29 commented Apr 2, 2015

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
Copy link

peasead commented Apr 22, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants