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
22
votes
4 answers
How to distribute a GTK+ application on Windows?
I have installed GTK+ (specifically GTK3) via MSYS and MinGW on Windows. I now want to copy the GTK+ dlls to my application directory so that it can be run on a computer without a global GTK+ installation. Which dlls are required for GTK+ to…

bradrn
- 8,337
- 2
- 22
- 51
22
votes
1 answer
How to run CLion with msys2 on windows
How to run clion with msys2 on windows? I have set the toolchain, but when it can't find .
user5946389
21
votes
2 answers
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…

Mya256
- 311
- 1
- 2
- 3
21
votes
5 answers
Qt GUI theme looks old-fashioned
When I cross-compile Qt 5.8.0 from source myself and use it to build the Qt "Dynamic Layouts" example from Qt Widgets for Microsoft Windows, it looks old-fashioned, as if it were running on Windows 2000, as shown in the left window below. However,…

David Grayson
- 84,103
- 24
- 152
- 189
19
votes
4 answers
Executing a script in MSYS2/MinGW
On Windows, if I start c:\msys64\mingw64.exe, it opens a shell, where I can build my project, let's say by calling a release bash script (to simplify). Everything works fine.
Now, I would like to execute my release script on mingw64 directly,…

rom1v
- 2,752
- 3
- 21
- 47
18
votes
3 answers
Certificate error when trying to install MSYS2 packages on Windows server
I installed MSYS2-64bits on my Windows Server 2016 to support some Linux librairies, such as OpenSSL, which I need in my Ruby on Rails development. MSYS2 has been partially installed with Ruby 2.7, but did not complete due to certificates error…

user1185081
- 1,898
- 2
- 21
- 46
17
votes
1 answer
tmux no server running on /tmp/tmux-*/default - Windows msys2 terminal
I'm new to tmux and have been trying to get a .tmux.conf that suits me and build a script to setup a session. At some point I started getting this error
no server running on /tmp/tmux-1065767/default
This message only appears when there is no…

BitFlow
- 375
- 1
- 2
- 13
17
votes
6 answers
Changing the root directory (/) of git bash
Is there a way to change the root (/) directory of git bash on windows.
By default it is set to the installation folder. Setting it to c:\ instead would save needing to type the drive letter e.g. /c/some/path on all absolute paths.

79E09796
- 2,120
- 1
- 20
- 33
16
votes
5 answers
How to get native windows decorations on GTK3 on Windows 7+ and MSYS2
I am trying to port my application from linux to windows and I have a problem with theming. In linux this works out of a box, just compile it and application is using good theme and looks native.
I have installed gtkmm3 and gtk3 in MSYS2 and I am…

kracejic
- 723
- 1
- 6
- 17
15
votes
5 answers
Installing nodejs and npm on MSYS2
My OS is win7, and I using MSYS2(version:MSYS_NT-6.1), Please give advice how to install nodejs and npm on this terminal, Thanks!

Ivan
- 459
- 1
- 3
- 9
15
votes
1 answer
Invoke MSYS2 Shell from Command Prompt or PowerShell
Starting from Command Prompt or PowerShell (either is fine; I can figure out how to do the other given one), how can I invoke the MSYS2 shell to run a command?
More specific issue
I'm including this information to avoid an XY problem, but I strongly…

jpmc26
- 28,463
- 14
- 94
- 146
12
votes
1 answer
Msys2 with python 3.8: ImportError: cannot import name 'open_code' from 'io'
NOTE: There have been several EDITs to the question, as per comments. They are indicated below, and separated by lines.
As of now, the only remaining issue seems to be that numpy cannot load, possibly (but not certainly) due to two alternative…

sancho.s ReinstateMonicaCellio
- 14,708
- 20
- 93
- 185
12
votes
4 answers
pacman -Syuu : error: failed retrieving file ("Operation too slow" and "SSL certificate problem")
I am having troubles when trying to upgrade my Portable Msys2 under Win 10 with pacman -Syuu, as detailed below.
I did this before with no problem.
What could the problem and solution be?
$ pacman -Syuu
:: Synchronizing package databases...
mingw32…

sancho.s ReinstateMonicaCellio
- 14,708
- 20
- 93
- 185
12
votes
1 answer
What is different between gcc.exe in msys2\usr\bin and gcc.exe in msys2\mingww64\bin?
When typing pacman -S gcc, it will install gcc in /usr/bin in msys2, but when typeing pacman -S mingw-w64-x86_64-gcc, it will install in /mingww64/bin.
What is different between them?

pah8J
- 807
- 9
- 15
11
votes
2 answers
How to use gitk with msys2?
I am using MSYS2 in Windows 10. git works fine, however gitk gives the error:
/usr/bin/gitk: line 3: exec: wish: not found
Some googling suggested this may be because TK is not installed, however I tried:
pacman -S tk
which gave the error:
error:…

M.M
- 138,810
- 21
- 208
- 365