How does RubyInstaller come to know the path of MSYS2?

912 Views Asked by At

I wanted to play around with the latest Ruby on windows, so I installed the MSYS2 toolkit first. After this I ran the RubyInstaller for version 2.4.2 and it was able to find out that MSYS2 is already installed on my system.

I checked in the environment variables, if there is an entry for the same, to my surprise there was no such entry. I also tried to search in the windows registry, but didn't found any clue.

Can someone explain me how RubyInstaller is handling that?

1

There are 1 best solutions below

1
On

You can check in cmd or powershell for its path as:

>where msys2

or search within all environment variables as sometimes limited entries could be shown over system properties as:

> $ENV:PATH

If its not found,then for x86_64 package of MSYS2

Set environment PATH to C:\msys64\usr\bin