Open kapitanluffy opened 1 year ago
The file D:/~/bin/ruby/3.0/packages/msys2-keyring-1~20211228-1-any.pkg.tar.zst
is missing, so that the key database isn't updated and hence the MSYS2 system update fails. Could you please check why this file isn't available?
The file
D:/~/bin/ruby/3.0/packages/msys2-keyring-1~20211228-1-any.pkg.tar.zst
is missing, so that the key database isn't updated and hence the MSYS2 system update fails. Could you please check why this file isn't available?
Oh. I forgot to mention. It does exist.
I'm running into the same issue here, except it's Ruby 3.1.0 with the latest installer (from Chocolatey). I did a fresh install where ridk install 1
works and installs MSYS2. But options 2 and 3 fail with the above errors. The keyring file is there as well, but the keys don't get recognized. I tried the steps from back here https://www.msys2.org/news/#2020-06-29-new-packagers (which shouldn't be an issue anymore, right?) but without success. Any help is appreciated.
@hochleitner yeah, for some reason it cannot find the archive. The newer version seem to work properly though. Here's my pull request for a fix. https://github.com/oneclick/rubyinstaller2/pull/296
It seems to be an issue with the included MSYS2 2019 that's very specific to resolve. I gave up, installed MSYS2 2022 before Ruby separately and everything works. I just wish I hadn't spent hours for this. 🙈
Yeah. That's why I forked and made it use the latest version (for windows at least) since I need to automate it.
Happy that you solved your issue 😆
On Windows 11 the current msys2 installation/updates with ridk install 1 2 3
only succed from ruby 2.6.x
and above, but 2.5.x
and 2.4.x
fail, so I'm not able to install native gems on a fresh install of 2.4.x / 2.5.x
anymore out of the box. Guess because the prepackaged MSYS2 configuration is outdated and databases and packages can not be found anymore.
Tried with 2.4.10
and 2.5.9
.
Since Ruby 2.4 was in development I've used a shared MSYS2 install for all Rubies. So, I rarely use the RIDK MSYS2 functionality. Not sure about this.
Try setting this (PS) before you run the ridk command:
$env:MSYS2_VERSION = '20220503'
or
$env:MSYS2_VERSION = '20240507'
Proceed at your own risk, some recent packages (re OpenSSL) may not be compatible with older Rubies. Some extension gems still run CI on older Rubies, so some c source does compile with the current MSYS2 tools.
EDIT: Note that Ruby 2.4 was compiled with gcc 9.3.0, but current MSYS2 is using gcc 14.1.0.
When trying it with setting the env variable, it expects to find the installer inside the users TEMP directory at
Run the MSYS2 installer ...
> C:\Users\User\AppData\Local\Temp/msys2-x86_64-20240507.exe
Failed
that does not exist.
But by understanding the problem, i managed setting it up manually, so thank you!
Cannot install seamlessly.
Steps to reproduce
ridk install 1 2 3