MSYS2 is a modern rewrite of MSYS, both of which are Cygwin (POSIX compatibility layer) forks with the aim of better interoperability with native Windows software. It aims to provide support to facilitate using the bash shell, Autotools, revision control systems and the like for building native Windows applications using MinGW-w64 toolchains. It comes with a port of ArchLinux's Pacman package manager. Three repos are provided with over 1000 packages.
Questions tagged [msys2]
978 questions
8
votes
2 answers
How can use mingw-w64 and MSYS2 with any IDE like eclipse or codeblocks?
I install msys2 with here.
I download
i686-5.3.0-release-posix-dwarf-rt_v4-rev0 from here.
after setup msys2-i686-20160205.exe, extract i686-5.3.0-release-posix-dwarf-rt_v4-rev0 in C:\msys32.
finally i run MinGW-w64 Win32 Shell from start menu…

niksirat
- 217
- 2
- 8
7
votes
4 answers
Invalid PGP Signature when updating packages in MSYS2 - Despite fixes
Ever since June 2020, I have been unable to update my packages with pacman -Syu. When I try, I get the following error:
(It gets up to "Checking package integrity", then shows errors like this for every single package)
error: gcc-libs: signature…

Tyler Shellberg
- 1,086
- 11
- 28
7
votes
2 answers
What is the correct way to ship a program built using MSYS2 and MingW to end users?
I'm building a C application on Windows using Msys2 and MingW.
This application will be shipped to Desktop Windows machines of end users who are not tech-savvy. I have two questions regarding this:
What is the best practice way to ship a Windows…

Aviv Cohn
- 15,543
- 25
- 68
- 131
7
votes
0 answers
Not able to compile project by cmake on MSys2
I am learning to use CMake by the tutorial:http://derekmolloy.ie/hello-world-introductions-to-cmake/.I tried compiling my hello_world.cpp using cmake but i am getting this error message on MSys2 in Windows 10:
-- The C compiler identification is…

denisssj
- 79
- 5
7
votes
1 answer
Perl6 script on MSYS2 causes 'failed to stat file' error
When I try to run a simple perl6 script on MSYS2-64 (bash.exe) on Windows 7 it says:
Could not open my-perl6-script.pl. Failed to stat file: no such file or directory
The same script runs perfectly fine on CMD.exe so I guess it's some…

Terry
- 1,206
- 1
- 10
- 26
7
votes
1 answer
How to horizontally center a Gtk.Grid inside a vertical Gtk.Box?
I have a Grid containing some Labels inside Frames to make it look like a table. This grid is inserted in a vertical Box in which direct child Labels are centered correctly (they are packed in the box in the same way as the Grid).
My simplified code…

silviubogan
- 3,343
- 3
- 31
- 57
7
votes
1 answer
Application compiled in mingw-w64/msys2, "the application was unable to start correctly (0xc00007b"
After compiling an application in the mingw-w64 64-bit Shell, it runs fine inside the shell, but gives an error the application was unable to start correctly (0xc00007b) when run normally, outside the shell.
I moved some of the necessary DLLs from…

Realz Slaw
- 3,138
- 1
- 24
- 38
6
votes
1 answer
Build Qt/cmake based project in GitHub Actions
I'm using Qt 5.12.11 in my project. As I wanted to use the software both on linux and win, I selected gcc compiler (I use MSYS2, so gcc is 10.3.0). The local build is ok both for linux and win, but the build via GitHub Actions fails on finding the…

Ali-G178
- 63
- 1
- 4
6
votes
1 answer
usage of MSYS2 environments
I want to thoroughly understand the usage of environments from the MSYS2 platform.
A partial description is available at: https://www.msys2.org/docs/environments/
Things I understand:
MSYS environment it is used to build applications that will run…
user16533250
6
votes
1 answer
How can I get vim to render Arabic text correctly?
I'm learning Arabic and I'd like to use Vim for taking notes. I tried a few different setups on Windows 10 and so far the closest to a good setup seems to be vim in MSYS2. MSYS2 renders Arabic text correctly, written from right to left, but when I…

Máté Burján
- 103
- 1
- 1
- 11
6
votes
1 answer
CLion Cannot run program "make" The system cannot find the file specified
When opening a makefile project in CLion I get the error message:
Cannot run program "make" (in directory "D:\Werkstudent\XWF\XT_Einzelauswertung"): CreateProcess error=2, The system cannot find the file specified: CreateProcess error=2, The system…

Teharez
- 501
- 8
- 25
6
votes
0 answers
Installing Perl 6 to MSYS2 on Windows 10
I want to develop a GTK+3 app on Windows 10 using Perl 6 and its NativeCall library. I have installed MSYS2 and GTK+3 on it and could run an example GTK+3 C program using it. But I couldn't install Perl 6 on MSYS2. I have tried to search web for…

ismailarilik
- 2,236
- 2
- 26
- 37
6
votes
0 answers
ffi gem's fails to build on Windows MSYS2. sys/select.h is missing
On Windows with MSYS2, I try to install jekyll:
gem install jekyll
but it fails, complaining that it can't build native extension ffi.
Looking in mkmf.log:
"pkg-config --exists libffi"
| pkg-config --libs libffi
=>…

jvtrudel
- 1,235
- 3
- 15
- 28
6
votes
2 answers
Why do I get the error "The program can't start because msys-2.0.dll is missing from your computer"? Is there a fix?
I have written a long program in C, so I am not writing the whole code.
These are the libraries I a using (in case it matters)
#include
#include
#include
#include
#include
#include…

CameFromSpace
- 113
- 1
- 4
- 11
6
votes
3 answers
How to configure the default shell in msys2/mintty?
I updated msys2 recently and found mintty always shows 'Shells (bash)' dialog before it invokes.
It's little bit annoying to click the button every time, how can I suppress this dialog with fixing the default shell?
Mintty version is mintty 2.7.7…

HirofumiTamori
- 1,125
- 2
- 13
- 27