PS D:\Github\ruby_alura\Ruby5> gem install sqlite3
Fetching: sqlite3-1.4.2.gem (100%)
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-x86_64-sqlite3
erro: mingw32: a chave "4A6129F4E4B84AE46ED7F635628F528CF3053E04" é desconhecida
erro: a chave "4A6129F4E4B84AE46ED7F635628F528CF3053E04" não pôde ser procurado remotamente
erro: mingw64: a chave "4A6129F4E4B84AE46ED7F635628F528CF3053E04" é desconhecida
erro: a chave "4A6129F4E4B84AE46ED7F635628F528CF3053E04" não pôde ser procurado remotamente
erro: msys: a chave "4A6129F4E4B84AE46ED7F635628F528CF3053E04" é desconhecida
erro: a chave "4A6129F4E4B84AE46ED7F635628F528CF3053E04" não pôde ser procurado remotamente
erro: "mingw32" base de dados não é válida (base de dados inválida ou corrompida (assinatura PGP))
erro: "mingw64" base de dados não é válida (base de dados inválida ou corrompida (assinatura PGP))
erro: "msys" base de dados não é válida (base de dados inválida ou corrompida (assinatura PGP))
pacman failed with the following output:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.2/ext/sqlite3
C:/Ruby25-x64/bin/ruby.exe -r ./siteconf20200823-2080-26n2eo.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby25-x64/bin/$(RUBY_BASE_NAME)
--with-sqlcipher
--without-sqlcipher
--with-sqlite3-config
--without-sqlite3-config
--with-pkg-config
--without-pkg-config
--with-sqlcipher
--without-sqlcipher
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/sqlite3-1.4.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.2
for inspection.
Results logged to C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/sqlite3-1.4.2/gem_make.out