0

I'm very new on ruby and trying to install it for the first time on my machine my it's giving me these error i've already installed sqlite3 on my machine I don't know what is the cause please help

warning: Public keyring not found; have you run 'pacman-key --init'? error: mingw32: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown error: keyring is not writable error: mingw64: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown error: keyring is not writable error: ucrt64: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown error: keyring is not writable error: clang64: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown error: keyring is not writable error: msys: key "5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknown error: keyring is not writable error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature)) error: database 'mingw64' is not valid (invalid or corrupted database (PGP signature)) error: database 'ucrt64' is not valid (invalid or corrupted database (PGP signature)) error: database 'clang64' is not valid (invalid or corrupted database (PGP signature)) error: database 'msys' is not valid (invalid or corrupted database (PGP signature)) Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

image is attached for the reference enter image description here

phd
  • 82,685
  • 13
  • 120
  • 165
mustafa
  • 33
  • 1
  • 7

1 Answers1

3

Fully remove the Ruby install, via control panel and ensure that all directories where Ruby has installed are deleted.

Then re-run the installation program BUT right click the icon and use "run as Administrator". This worked for me and I had the same issue.

Dharman
  • 30,962
  • 25
  • 85
  • 135
DerekC
  • 31
  • 1