Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

msys2: not finding windows programs despite (MSYS2_PATH_TYPE = inherit)

Using MSYS2 64-bit version 20161025 on Windows 10...

I'm unable to get msys2 to recognize programs in the windows path. For example, after installing Go version 1.8.3 using the windows the installer: (1) Cygwin finds go.exe (2) the Windows command prompt finds go.exe but (3) MSYS2 does not.

Please refer to attached image. Thanks in advance. enter image description here

like image 948
Mya256 Avatar asked Jul 30 '17 20:07

Mya256


People also ask

How do I add MSYS2 to path?

Adding MSYS2 to your PATH variableClick on the “Environment Variables” button. In the “System Variables” section, scroll down and double-click on the “Path” variable. If you're on Windows 7/8, add the text C:\msys32\usr\bin;C:\msys32\usr\local\bin; to the beginning of the variable value.

What is MSYS2 used for?

MSYS2 ("minimal system 2") is a software distribution and a development platform for Microsoft Windows, based on Mingw-w64 and Cygwin, that helps to deploy code from the Unix world on Windows.


1 Answers

Run msys2_shell.cmd -use-full-path

or

uncomment MSYS2_PATH_TYPE=inherit in msys2.ini (can be found in the installation directory of MSYS2).


Related GitHub issue regarding the inherit flag.

like image 51
Andrey Avatar answered Oct 01 '22 02:10

Andrey