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
6
votes
1 answer
GtkOverlay not passing through input events
The GtkOverlay widget has a special set_overlay_pass_through method to pass inputs through to underlying overlays. I want to use this feature to overlay a GtkDrawingArea over the UI to add drawings. Unfortunately, it does not work for me, no input…

tly
- 1,202
- 14
- 17
5
votes
2 answers
MinGW pacman -Sys Unable to lock database
To start Code and Compile C++, must install a compiler. For my case, it is MSYS2 through which MinGW is available. According to the installation guild mentioned on the website, I installed the software without any errors. Now I was supposed to…

Virat Srivastava
- 73
- 1
- 7
5
votes
0 answers
"Missing" jni.h File Causes JPostal Build to Fail
I'm trying to build JPostal but I get the following error after issuing the command ./gradlew assemble:
checking for gcj... no
checking for guavac... no
checking for jikes... no
checking for javac... javac
checking if javac works... yes
checking for…

Bradford Griggs
- 439
- 2
- 15
5
votes
1 answer
Clion cannot find MinGW
Clion just cannot find MinGW even I properly set right path.
Someone ask me to post image of C:\msys64 folder.
It used to work fine. But at some point it didn't work. Maybe after I upgraded MinGW or Clion.

desperateLord
- 303
- 2
- 9
5
votes
2 answers
How to configure VS Code's CMake Tools Extension for GCC and MSYS Makefiles on Windows?
This question is about the CMake Tools extension for VS Code. The operation system is Windows 10.
The extension correctly found GCC, which I can verify by having a look at the %LocalAppData%/CMakeTools/cmake-tools-kits.json.
{
"name": "GCC 10.3.0…

Neonit
- 680
- 8
- 27
5
votes
2 answers
GCC not added to system path on pacman install
Issue
When installing mingw on a fresh MSYS2 instance I run into the issue of gcc not found:
$ g++
bash: g++: command not found
Setup
Fresh MSYS2 install on relatively clean windows 10 install:
pacman -Syu
pacman -Su
pacman -S make
pacman -S…

Alessi 42
- 1,112
- 11
- 26
5
votes
1 answer
Broken Pip on MSYS2
I have a problem where anytime I try to use Pip in the MSYS shell I get this error:
AttributeError: module 'socket' has no attribute 'TCP_NODELAY'
All I've done so far is:
pacman -Syu
pacman -Su
pacman -S glib2-devel python3-pip git make nano…

Alex Eastman
- 305
- 1
- 10
5
votes
3 answers
How can I find out the version of MSYS2 from its bash shell
I would like to find out which version of MSYS2 is currently running, from within its bash shell.
For example, is there a command, similar to Windows "ver", or or a specific package that denotes the entire MSYS2 installation?
In case it matters, I…

Andreas Maier
- 2,724
- 1
- 26
- 30
5
votes
1 answer
MSYS2 GCC zeros out doubles on floating point operations with SSE disabled
Consider the C program below.
#include
#include
int main(int argc, char* argv[]) {
double x = 4.5;
double x2 = atof("3.5");
printf("%.6f\n", x);
printf("%.6f\n", x2);
return 0;
}
When compiling this with…

fuglede
- 17,388
- 2
- 54
- 99
5
votes
1 answer
msys2 / mingw missing dynamic linker library
I am attempting to build SpatiaLite in Msys2. The build goes well until it attempts to compile the examples. It throws an error because the linker cannot find the dynamic linker (dl) library. Is this something that I should expect msys2/mingw to…

user8908459
- 537
- 5
- 24
5
votes
1 answer
Is there a way to source arbitrary bash scripts (ie. msys2-packages "shell") in zsh?
I am using make from inside MSYS2 project, in general without problems. However, if I use zsh, I am unable to switch subsystems. For example:
source shell mingw64
gives:
/usr/bin/shell:58: bad substitution
Clearly, there is bash specific code in…

antonio
- 10,629
- 13
- 68
- 136
5
votes
1 answer
Error installing Sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)
I tried to install Sass. I installed Ruby and MSYS2 prior to that, the latest from all with Chocolatey:
choco install ruby
choco install msys2
Seemingly they were properly installed. ruby -v results in:
ruby 2.5.0p0 (2017-12-25 revision 61468)…

Erik Kránicz
- 345
- 1
- 2
- 12
5
votes
2 answers
How do I set up Gtk on Windows for Haskell development?
So far I have installed full version from https://www.haskell.org/platform/windows.html
Initially, pacman did not work so I did run as an administrator mingw64.exe found in
C:\Program Files\Haskell Platform\8.2.1\msys
I have updated the msys2 sytem…

ruby_object
- 1,229
- 1
- 12
- 30
5
votes
1 answer
MSYS2 inferior shell in Emacs on Windows
Trying to launch an inferior shell (M-x shell) in Emacs on Windows that connects to MSYS2.
I found this snippet from Mastering Emacs - Running Shells in Emacs Mastering Emacs, and adapted it:
(setq explicit-shell-file-name…

trayres
- 522
- 2
- 6
- 18
5
votes
1 answer
Using MSYS2 installed libraries in CLION
So I've been wanting to learn C++, I have a student license for CLion and am familiar with other software from the company so I'd want to use it if possible. Using MSYS2 seemed like a good way to easily manage libraries, since that tends to be…

Fuujin
- 480
- 5
- 9