关于安装bettercap的ERROR: Failed to build gem native extension 报错解决
按照bettercap的官方文档安装步骤
sudo gem install bettercap
会有一报错
Fetching: colorize-0.8.1.gem (100%) Successfully installed colorize-0.8.1 Fetching: pcaprub-0.12.4.gem (100%) Building native extensions. This could take a while... ERROR: Error installing bettercap: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c /usr/bin/ruby2.3 -r ./siteconf20170211-15377-jpel86.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
安装以下依赖可以解决这个问题
sudo apt-get install ruby-dev libpcap-dev