ridk install fails due to pacman-key missing CLI tools and scripts
synthead opened this issue · 1 comments
synthead commented
What problems are you experiencing?
ridk install
fails due to an issue with pacman-key
not finding CLI tools and scripts needed to generate local keys. This is with Ruby 3.2.2-1 (x64).
PS C:\Windows\system32> 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]
> sh -lc true
/usr/bin/pacman-key: line 31: /usr/share/makepkg/util/message.sh: No such file or directory
/usr/bin/pacman-key: line 32: /usr/share/makepkg/util/parseopts.sh: No such file or directory
/usr/bin/pacman-key: line 33: /usr/share/makepkg/utils_fixed_path.sh: No such file or directory
/usr/bin/pacman-key: line 625: parseopts: command not found
/usr/bin/pacman-key: line 31: /usr/share/makepkg/util/message.sh: No such file or directory
/usr/bin/pacman-key: line 32: /usr/share/makepkg/util/parseopts.sh: No such file or directory
/usr/bin/pacman-key: line 33: /usr/share/makepkg/utils_fixed_path.sh: No such file or directory
/usr/bin/pacman-key: line 625: parseopts: command not found
/usr/bin/pacman-key: line 31: /usr/share/makepkg/util/message.sh: No such file or directory
/usr/bin/pacman-key: line 32: /usr/share/makepkg/util/parseopts.sh: No such file or directory
/usr/bin/pacman-key: line 33: /usr/share/makepkg/utils_fixed_path.sh: No such file or directory
/usr/bin/pacman-key: line 625: parseopts: command not found
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x86_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-libmangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf mingw-w64-ucrt-x86_64-pkgconf
error: failed to initialize alpm library:
(root: /, dbpath: /var/lib/pacman/)
could not find or read directory
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 []
Steps to reproduce
- Install Ruby 3.2.2-1 (x64).
- Run
ridk install
. - Press "enter" for default option of "1,3" when prompted.
- Observe the errors from above.
What's the output from ridk version
?
---
ruby:
path: C:/Ruby32-x64
version: 3.2.2
platform: x64-mingw-ucrt
ruby_installer:
package_version: 3.2.2-1
git_commit: 83df213
msys2:
path: C:\Ruby32-x64\msys64
cc: gcc (Rev10, Built by MSYS2 project) 12.2.0
sh: GNU bash, version 5.2.15(1)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.19043.1110]
mohits commented
hi @synthead - did this get resolved for you? Unfortunately, I did not have the same experience, so I can't relate but I'm wondering if this was resolved by reinstallation or something. That said, in my case, it was installed during the installation directly as I documented here: https://notepad.onghu.com/2023/ruby3.2-windows-day0-install-hello_world/