ruby - cannot install sqlite3 using gem -
i'm trying install metasploit on raspberry pi 2. when try execute command:
gem install wirble sqlite3 bundler
i error:
successfully installed wirble-0.1.3 parsing documentation wirble-0.1.3 done installing documentation wirble after 2 seconds building native extensions. take while... error: error installing sqlite3: error: failed build gem native extension.
/usr/bin/ruby2.1 extconf.rb mkmf.rb can't find header files ruby @ /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
gem files remain installed in /var/lib/gems/2.1.0/gems/sqlite3-1.3.13 inspection. results logged /var/lib/gems/2.1.0/extensions/arm-linux/2.1.0/sqlite3-1.3.13/gem_make.out installed bundler-1.15.4 parsing documentation bundler-1.15.4 done installing documentation bundler after 73 seconds 2 gems installed
the system missing ruby dev files. if using debian
sudo apt-get install ruby-dev
should work.
install ruby-dev
using package managers. (package name may differ across different linux distros)
Comments
Post a Comment