Questions tagged [msys2]

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.

978 questions
181
votes
12 answers

Change the location of the ~ directory in a Windows install of Git Bash

I am not even sure I am asking the right question. Let me explain my situation: This is about Git on Windows 7. My company sets up the Windows user directory on a network drive, not on the local hard drive (for backup and other purposes beyond the…
PEWColina
  • 2,014
  • 2
  • 13
  • 16
175
votes
3 answers

How are msys, msys2, and msysgit related to each other?

I've been searching around, but I can't find a thorough description of what's going on with these 3 versions of MSYS. (It's entirely possible I just don't know what to look for.) I do understand that MSYS is a minimal port of Linux tools to support…
jpmc26
  • 28,463
  • 14
  • 94
  • 146
112
votes
4 answers

How can I install MinGW-w64 and MSYS2?

I am trying to build some open source library. I need a package management system to easily download the dependencies. At first I am using MinGW and MSYS. But the included packages are limited. Someone told me to use Mingw-w64 and MSYS2. I…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
79
votes
3 answers

Why can't Git Bash run my executable?

I am on git-for-windows Git Bash. I can't run an executable on the command line: Pedr@Abc-07 MINGW64 /c/dev $ ls sqlite3.exe sqlite3.exe* Pedr@Abc-07 MINGW64 /c/dev $ sqlite3 bash: sqlite3: command not found Why is it so?
user182917
  • 1,688
  • 2
  • 14
  • 17
74
votes
16 answers

Cygwin/Git error cygheap base mismatch detected

I have installed two Windows servers with the latest versions of Cygwin and Git, and I am trying to clone the git repository from S1 to S2. I can successfully ssh from S2 to S1 using RSA keys, but when I do this : git clone…
John Zumbrum
  • 2,786
  • 8
  • 36
  • 60
62
votes
2 answers

Differences between MSYS2 and Cygwin

Traditionally MSYS bash has been considered inferior to Cygwin bash. The former was an ancillary tool inside MinGW intended for running autoconf scripts. But now there is MinGW-w64 and MSYS2. The latter ships with a sweet pacman like package…
antonio
  • 10,629
  • 13
  • 68
  • 136
46
votes
2 answers

What are the differences between msys/git and git-for-windows/mingw-w64-x86_64-git?

To be able to run the test scripts for my cross-platform application also on Windows, I installed MSYS2 and used pacman to install any packages my test scripts rely on. Since MSYS2 provides a port of git (msys/git), I think there is no need to…
Brecht Machiels
  • 3,181
  • 3
  • 25
  • 38
38
votes
11 answers

How do I integrate MSYS2 shell into Visual studio code on Window?

I tried to integrate MSYS2 shell into Visual studio Code integrated terminal. Here's my user settings: { "terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe", "terminal.integrated.shellArgs.windows": ["--login",…
pbeta
  • 774
  • 1
  • 7
  • 13
37
votes
1 answer

How to obtain older versions of packages using MSYS2?

I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation. I installed the MSYS2 package manager into the default folder, C:\msys64, updated it by running update-core and pacman -Su. I then downloaded the MinGW64…
Andy
  • 1,127
  • 2
  • 12
  • 25
34
votes
4 answers

How to remove the cause of an unexpected indentation warning when generating code documentation?

The documentation code with the problem is at the beginning of a method: """ Gtk.EventBox::button-release-event signal handler. :param widget: The clicked widget (The Gtk.EventBox). :param event: Gdk.EventButton object with information regarding …
silviubogan
  • 3,343
  • 3
  • 31
  • 57
34
votes
8 answers

How to change HOME directory and start directory on MSYS2?

I have installed MinGW-w64 and MSYS2. But how do I change the HOME directory in MSYS2? So that when I type cd $home or cd ~ it goes to another directory that I defined. And how do I write a code so that the starting directory is always where the…
Coder88
  • 1,015
  • 3
  • 10
  • 23
33
votes
4 answers

MSYS vs. MinGW: internal environment variables

MSYS2 default shell (bash) can be started choosing among three launchers, which also set the environment variable MSYSTEM. Specifically: msys2_shell.bat sets it to MSYS mingw64_shell.bat sets it to MINGW64 and mingw32_shell.bat sets it…
antonio
  • 10,629
  • 13
  • 68
  • 136
29
votes
3 answers

Step by step instruction to install Rust and Cargo for mingw with Msys2?

I tried to install Rust on Cygwin but failed to be able link with mingw. Now I am trying to install it with Msys2. I already installed Msys2 and Mingw. I tried to follow this wiki page but I got lost at number 2: Download and install Rust+Cargo…
ThangNguyen
  • 501
  • 2
  • 5
  • 13
28
votes
1 answer

MSYS2 - Install gcc or toolchain?

I am using Portable MSYS2 + MinGW64. I mean to get gcc. Some sources indicate installing gcc, e.g. $ pacman -Sy mingw-w64-i686-gcc $ pacman -Sy mingw-w64-x86_64-gcc http://www.cplusplus.com/forum/windows/227005/ Others (mostly in github) indicate…
25
votes
3 answers

How to use MinGW-64 with Qt Creator

I am aware that there are many post about this, but I honestly didn't understood any of it. So, how do I install a kit for my Qt Creator (open source 5.7)? I already downloaded and installed MSYS2.... don't know what to do with it. I already…
andseg
  • 658
  • 1
  • 9
  • 26
1
2 3
65 66