无法使用 gem 安装 sqlite3
cannot install sqlite3 using gem
我正在尝试在我的 Raspberry Pi 2 上安装 Metasploit。
但是当我尝试执行这个命令时:
gem install wirble sqlite3 bundler
我收到这个错误:
Successfully installed wirble-0.1.3 Parsing documentation for
wirble-0.1.3 Done installing documentation for wirble after 2 seconds
Building native extensions. This could take a while... ERROR: Error
installing sqlite3:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 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.1.0/gems/sqlite3-1.3.13 for inspection. Results logged
to
/var/lib/gems/2.1.0/extensions/arm-linux/2.1.0/sqlite3-1.3.13/gem_make.out
Successfully installed bundler-1.15.4 Parsing documentation for
bundler-1.15.4 Done installing documentation for bundler after 73
seconds 2 gems installed
系统缺少 ruby 个开发文件。如果您使用的是 Debian
sudo apt-get install ruby-dev
应该做这项工作。
使用您的包管理器安装 ruby-dev
。 (不同 linux 发行版的软件包名称可能不同)
我正在尝试在我的 Raspberry Pi 2 上安装 Metasploit。 但是当我尝试执行这个命令时:
gem install wirble sqlite3 bundler
我收到这个错误:
Successfully installed wirble-0.1.3 Parsing documentation for wirble-0.1.3 Done installing documentation for wirble after 2 seconds Building native extensions. This could take a while... ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 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.1.0/gems/sqlite3-1.3.13 for inspection. Results logged to /var/lib/gems/2.1.0/extensions/arm-linux/2.1.0/sqlite3-1.3.13/gem_make.out Successfully installed bundler-1.15.4 Parsing documentation for bundler-1.15.4 Done installing documentation for bundler after 73 seconds 2 gems installed
系统缺少 ruby 个开发文件。如果您使用的是 Debian
sudo apt-get install ruby-dev
应该做这项工作。
使用您的包管理器安装 ruby-dev
。 (不同 linux 发行版的软件包名称可能不同)