Unattented isntallation of msys(ridk) broken in 2.6.5

116 views
Skip to first unread message

Vassilis Rizopoulos

unread,
Jan 8, 2020, 9:35:50 AM1/8/20
to rubyin...@googlegroups.com
Hi all.

It seems that the unattended MSYS installer in the 2.6.5.1 RubyInstaller is broken.

Steps to reproduce:

Install Ruby (I used chocolatey, but the effect is reproducible with manual install)
ridk install 3  -> the expectation is that there is no prompt or other required user input

Instead, the MSYS64 installer is started in interactive mode and the ridk script does not terminate correctly.

Problem is also present in the new 2.7 installer.

The 2.5.3.101 package from chocolatey (latest from 2.5 series there) does the job as expected.

Is there an issue tracker you would like me to open an issue at?
Cheers,
V.-

Lars Kanis

unread,
Jan 8, 2020, 11:21:34 AM1/8/20
to RubyInstaller
Hi Vassilis!

"ridk install" uses the MSYS2 interactive installer, it is not intended to run unattended.

As fas as I know there are three options to install MSYS2 unattended:
1. Use the RubyInstaller-Devkit version. It has a regular MSYS2 installation with some preinstalled packages builtin.
2. Install MSYS2 by chocolatey. They call the installer in some way to run it unattended.
3. Use the MSYS2 tarbal from http://repo.msys2.org/distrib/

If you install Ruby and MSYS2 per Chocolatey, ruby should find the MSYS2 installation and use it. "ridk install" shouldn't download the interactive installer in this case.

--
Regards,
Lars


--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyinstalle...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyinstaller/CAEUy0Kw7o8bxGgAcx6iK%2Bbd4n3k9exXG9oML049jOXpv3xyu6A%40mail.gmail.com.

Vassilis Rizopoulos

unread,
Jan 8, 2020, 3:57:12 PM1/8/20
to rubyin...@googlegroups.com
Hi Lars.
'ridk install 3' was the suggested way in the chocolatey docs for unattended installation (next to the msys2 chocolatey install which is unfortunately also broken - it hangs indefinitely when called in a non-interactive process like a Chef resource) and it was working up until 2.5.3.1.
I have now verified that it is not working from 2.5.3.101 onwards (versions are all chocolatey packages).

Since I don't think that the msys2 version has changed (has it? correct me if I am wrong - but I definitely do not think that it changed between 2.5.3.1 and 2.5.3.101)  I would tend to think that something minor changed in the ridk scripts that broke the parameters given to the installer.
Cheers,
V.-



--

Lars Kanis

unread,
Jan 8, 2020, 4:10:53 PM1/8/20
to rubyin...@googlegroups.com, Vassilis Rizopoulos


On January 8, 2020 9:56:57 PM GMT+01:00, Vassilis Rizopoulos <vassilisr...@gmail.com> wrote:

>'ridk install 3' was the suggested way in the chocolatey docs for
>unattended installation

That's true, since it installs required pacman packages for Ruby. But if it doesn't find a usable msys2 installation, it falls back to install it interactively. That hasn't changed since two years.

Please talk to the chocolatey people. They probably need to fix the msys2 receipt.

--
Best Regards,
Lars Kanis
Reply all
Reply to author
Forward
0 new messages