evertrue / dmarcer

A Gem for reading in DMARC XML reports and printing out useful info from them.
MIT License
4 stars 2 forks source link

install error #1

Open wifiuk opened 6 years ago

wifiuk commented 6 years ago

Ununtu OS

$ sudo gem install dmarcer Building native extensions. This could take a while... ERROR: Error installing dmarcer: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.8.2/ext/nokogiri

/usr/bin/ruby2.3 -r ./siteconf20180213-3658-17qdcwa.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/nokogiri-1.8.2 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.8.2/gem_make.out

wifiuk commented 6 years ago

fix: sudo apt install ruby-dev

then try install again

jeffbyrnes commented 6 years ago

@wifiuk I’d recommend strongly against using the system Ruby, except in cases where you’re deploying a system that’d not going to have users. While it is a bit more work, I encourage something like rbenv, which offers a user-centric Ruby environment.

At the very least, this will let you use the most up-to-date version of Ruby, instead of the one that Ubuntu packages, which is very likely to be quite out-of-date, and potentially insecure as a result.

That also means you won’t run into issues like this.