Install SQLite3 Gem in SketchUp

Hi All,

When I try to install SQLite3 gem on SketchUp, It’s showing

Gem::install "sqlite3"
Error: #<Gem::InstallError: The 'sqlite3' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
>
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/defaults/operating_system.rb:12:in `rescue in block in <top (required)>'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/defaults/operating_system.rb:4:in `block in <top (required)>'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/installer.rb:275:in `call'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/installer.rb:275:in `block in run_pre_install_hooks'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/installer.rb:274:in `each'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/installer.rb:274:in `run_pre_install_hooks'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/installer.rb:235:in `install'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/request_set.rb:166:in `block in install'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/request_set.rb:150:in `each'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/request_set.rb:150:in `install'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems/dependency_installer.rb:394:in `install'
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/rubygems.rb:558:in `install'
<main>:in `<main>'
SketchUp:1:in `eval'

Please help me for install SQLite3 gem.

Thanks,
Siva S

I don’t know if you’re familiar with building extension gems with Ruby. If not, I happen to have built a pre-compiled SQlite3 gem recently.

Download the file ‘sqlite3-1.4.0.20190219-x64-mingw32.gem’ from the page here:
https://ci.appveyor.com/project/MSP-Greg/sqlite3-ruby/build/job/9tfvju3tbxvdm0y4/artifacts

then from the SU console, type:

Gem.install '<path to gem>/sqlite3-1.4.0.20190219-x64-mingw32.gem'

The gem should work with Ruby 2.0 thru 2.6 x64 bit only.