Ruby ridk安装命令在Windows 7上抛出错误

t98cgbkg  于 2023-01-25  发布在  Ruby
关注(0)|答案(1)|浏览(273)

在windows 7上成功安装最新版本的ruby(版本3.2.0)(即rubyinstaller-devkit-3.2.0 - 1-x64.exe)后。在windows上安装ruby后,当我按照请求运行命令ridk install**以安装下面逗号分隔的选项1和3时,它抛出下面的错误

C:\Users\FRED> ridk install
 _____       _           _____           _        _ _         ___
|  __ \     | |         |_   _|         | |      | | |       |__ \
| |__) |   _| |__  _   _  | |  _ __  ___| |_ __ _| | | ___ _ __ ) |
|  _  / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | |  __/ | / /_
|_|  \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
                    __/ |           _
                   |___/          _|_ _  __   | | o __  _| _     _
                                   | (_) |    |^| | | |(_|(_)\^/_>

   1 - MSYS2 base installation
   2 - MSYS2 system update (optional)
   3 - MSYS2 and MINGW development toolchain

Which components shall be installed? If unsure press ENTER [1,3] 1,3

> sh -lc true
The MSYS2 project is planning to drop active support of Windows 7
and 8.0 sometime during 2022. For more information visit
https://www.msys2.org/docs/windows_support
MSYS2 seems to be properly installed

Install MSYS2 and MINGW development toolchain ...

> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils fil
e gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x8
6_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-
ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-lib
mangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mi
ngw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf ming
w-w64-ucrt-x86_64-pkgconf
error: mingw32: signature from "Christoph Reiter (MSYS2 development key) <reiter
.christoph@gmail.com>" is unknown trust
      1 [main] pacman 2406 dofork: child 2407 - died waiting for dll loading, er
rno 11
error: GPGME error: System error w/o errno
error: mingw64: missing required signature
error: ucrt64: missing required signature
error: clang32: signature from "Christoph Reiter (MSYS2 development key) <reiter
.christoph@gmail.com>" is unknown trust
error: clang64: signature from "Christoph Reiter (MSYS2 development key) <reiter
.christoph@gmail.com>" is unknown trust
error: msys: signature from "Christoph Reiter (MSYS2 development key) <reiter.ch
ristoph@gmail.com>" is unknown trust
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'ucrt64' is not valid (invalid or corrupted database (PGP signat
ure))
error: database 'clang32' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'clang64' is not valid (invalid or corrupted database (PGP signa
ture))
error: database 'msys' is not valid (invalid or corrupted database (PGP signatur
e))
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed

   1 - MSYS2 base installation
   2 - MSYS2 system update (optional)
   3 - MSYS2 and MINGW development toolchain

Which components shall be installed? If unsure press ENTER []

任何帮助都将不胜感激。

brtdzjyr

brtdzjyr1#

您的签名似乎已过期。我相信以下内容可能会解决您的问题:
1.转到ruby安装C:\Ruby32-x64\msys64的mysys文件夹
1.双击msys2.exe
1.粘贴(Shift + Insert)以下命令:

rm -r /etc/pacman.d/gnupg/
pacman-key --init
pacman-key --populate msys2

1.关闭mysys2
1.打开动力 shell

ridk install

1.安装、更新和添加开发工具链
资料来源:

相关问题