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
0
votes
0 answers
MSYS2 Mingw64 - lto-wrapper.exe: Create Process: No such file or directory
So, I have Windows 8.1 x64 with installed MSYS2. Using pacman I installed mingw64 gcc. I didn't change anything else.
Then I have a forked project that uses scons. Project is correct, it builds fine when others are trying to compile it.
The thing is…

user64675
- 482
- 7
- 25
0
votes
1 answer
Installing GConf on MSYS2
I try to build some project with MSYS2/MinGW64.
configure fails with:
checking for gconftool-2... no
configure: error: gconftool-2 executable not found in your path - should be installed with GConf
I have found no prebuild distributive at the home…

KonstantinL
- 667
- 1
- 8
- 20
0
votes
2 answers
How to call msys2 find command from PowerShell with correct shell escape characters?
I'm wondering how can I escape the following command from PowerShell so that it works?
PS C:\Users\buster\Documents\> find -name \*.c
PowerShell says: error not found *.c
PS C:\Users\buster\Documents\> find -name *.c
PowerShell says: error not…

Walter
- 39
- 2
0
votes
0 answers
cmake is not able to properly read paths from windows's unix-like shells
I followed llvm-clang install instructions but having issues with configure command line. I tried both MSYS2 64 bit and Windows mingw for the purpose but similar issues appear: cmake seems confusing between windows and unix paths.
Thus, when I try…

Courier
- 920
- 2
- 11
- 36
0
votes
1 answer
I was trying to run ./configure file with MSYS but I get Syntax Error near unexpected token?
When I try to run ./configure.ac file with MSYS .sh from the command line with mingw64 compiler, I get the following Error from the ./configure file.
Error:
./configure.ac: line 11: syntax error near unexpected token `[svnversion],'
./configure.ac:…

Juniar
- 1,269
- 1
- 15
- 24
0
votes
1 answer
whats wrong on my msys2? can't get dirname at bash
my nodejs script can't work well at msys2 shell
something worng make $basedir always become empty
than case this bug Error: Cannot find module 'C:\msys64\node_modules\gulp\bin\gulp.js'
how can i fix this?
msys2-bug-test
#!/bin/sh
basedir=$(dirname…

bluelovers
- 1,035
- 2
- 10
- 22
0
votes
0 answers
Running ./autogen.sh with bash -c fails
I port autoconf project from Linux to Windows and when I invoke autogen.sh with bash, it fails on dirname $0:
C:\msys64\usr\bin\bash.exe -c "./autogen.sh"
/usr/bin/dirname: missing operand
Try '/usr/bin/dirname --help' for more information.
Command…

anatoly techtonik
- 19,847
- 9
- 124
- 140
0
votes
1 answer
Why is unistd.h different in MSYS2 and mingw-w64-x86_64-toolchain?
I am running CLion which recommended MinGW. The most current one seems to be MSYS2. At first CLion didn't find gcc, cmake and so on. To do that I had to install mingw-w64-x86_64-toolchain, which creates a mingw64 folder in my msys64 (MSYS2…
user5444681
0
votes
1 answer
Compiling openssl-1.1.0e on Windows using msys2
It's been a rocky road with compiling openssl-1.1.0e on my Windows 7 VM.
First, some msys2 packages with the following command from inside the msys2 shell;
pacman -S make gcc perl
The source was configured with;
./Configure mingw
Then;
make depend…

Sam
- 5
- 4
0
votes
1 answer
C++ program cross compile on linux using mingw works in msys2 but not directly in windows
I have a strange problem. I have a program which depend on Qt, Zlib and ruby that I cross compile on ubuntu using mxe (x86_64-w64-mingw32.shared).
The ruby I use is not included in mxe packages, but has been compiled with the same toolchain.
Then I…

Laurent Jospin
- 604
- 5
- 9
0
votes
3 answers
Unable to build cpprestsdk
When I try to build cpprestsdk (https://github.com/Microsoft/cpprestsdk) in MSYS2 I get a very long list of errors. Here my enviroment:
Windows 10
MSYS2 with i686-w64-mingw32 toolchain
gcc 6.3.0
make 4.2.1
cmake 3.8.0
CMake
$ cmake -G "MSYS…

Mark
- 4,338
- 7
- 58
- 120
0
votes
2 answers
wxPython in MSYS2: SetLabel in threaded handler causes freeze?
I am testing on windows 7, 64-bit, MSYS2 Mingw64 shell (the shell start command is C:\msys64\msys2_shell.cmd -use-full-path -mingw64); here I have installed via pacman: mingw-w64-x86_64-python2-2.7.13-1, mingw-w64-x86_64-wxWidgets-3.0.2-17 and…

sdaau
- 36,975
- 46
- 198
- 278
0
votes
1 answer
Install Traceroute on windows' MSYS2 using pacman
I try to install traceroute on MSYS2. Using its pacman package manager, I update the index:
pacman -Fy
and search for traceroute:
pacman -Fs traceroute
It finds nothing...
Could I use any pacman packages source to install things on MSYS2? For…

jvtrudel
- 1,235
- 3
- 15
- 28
0
votes
1 answer
How to get Docker work properly from within the msys2 bash?
Since I prefer using bash (and use git anyway), I tried running docker run -it ubuntu bash (after a successful hello-world), which unfortunately resulted in a invalid handle error. Using cmd.exe instead, it works fine.

Tobias Kienzler
- 25,759
- 22
- 127
- 221
0
votes
1 answer
Building Valama IDE on Windows using MSYS2 and MingW
I am using MSYS2 to build Valama [the next generation IDE for Vala].
what the GitHub repository says that some dependencies are required.
and they are provided for Ubuntu using this command
sudo apt-get install build-essential valac-0.24…

Ala'a Al Hallaq
- 455
- 5
- 11