Yesterday I was encountering
The specified module could not be found. - C:/Ruby/lib/ruby/gems/2.0.0/extensions/x64-mingw32/2.0.0/mysql2-0.3.16/mysql2/mysql2.so(LoadError)
It was because I updated the AWS RDS from to 8.0 version last week. The applications that use Linux doesn't have problems but Windows.
So I downloaded the MySQLConnectorC and dobash
gem install mysql2 -- --with-opt-lib c:/your/path/to/Ruby27-x64/msys64/mingw6/lib64
It recognize the library location but there are somemore errors
error: mingw32: key"5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknownerror: key"5F944B027F7FE2091985AA2EFA11531AA0AA7F57" could not be looked up remotelyerror: mingw64: key"5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknownerror: key"5F944B027F7FE2091985AA2EFA11531AA0AA7F57" could not be looked up remotelyerror: msys: key"5F944B027F7FE2091985AA2EFA11531AA0AA7F57" is unknownerror: key"5F944B027F7FE2091985AA2EFA11531AA0AA7F57" could not be looked up remotelyerror: 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'msys' is not valid(invalid or corrupted database(PGP signature))
the anwer is to use MSYS2 installation with the following command: pacman -Syu
But the problem is there is no executable file in Ruby windows called pacman.
So that's where ridk comes in. ridk is the Ruby Installer Developement Kit. if you just execute ridk in command line, you will know.
The command to run pacman using ridk is this
ridkexecpacman-Syu
Viola! It will recreate the corrupted databases
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse