What is the correct way to install meson in MSYS2?

102 Views Asked by At

If I simply do pacman -S meson, it installs, but then:

ERROR: This python3 seems to be msys/python on MSYS2 Windows, but you are in a MinGW environment
ERROR: Please install and use mingw-w64-x86_64-python3 and/or mingw-w64-x86_64-meson with Pacman
ERROR: This python3 seems to be msys/python on MSYS2 Windows, but you are in a MinGW environment
ERROR: Please install and use mingw-w64-x86_64-python3 and/or mingw-w64-x86_64-meson with Pacman

I am not in a mingw environment, I am in an MSYS2 window, mingw is not installed on this system.

If I do what it says and pacman -S mingw-w64-x86_64-meson, then there is no meson available in my MSYS2 shell:

/bin/sh: line 1: meson: command not found
/bin/sh: line 2: meson: command not found

How can I correctly install meson so that it will run in MSYS2?

0

There are 0 best solutions below