Questions tagged [msys]

MSYS is a collection of GNU utilities such as bash, make, gawk and grep for Microsoft Windows, supporting UNIX shell scripting, and building of applications and programs which depend on the availability of traditional UNIX tools. Primarily, it is intended to complement MinGW, by compensating for many of the deficiencies of Windows' own cmd.exe shell.

MSYS wiki page: http://www.mingw.org/wiki/MSYS

MSYS is a collection of GNU utilities such as bash, make, gawk and grep for Microsoft Windows, supporting UNIX shell scripting, and building of applications and programs which depend on the availability of traditional UNIX tools. Primarily, it is intended to complement MinGW, by compensating for many of the deficiencies of Windows' own cmd.exe shell. However, many users will find applications beyond this primary usage, or may even just prefer its more capable shell as a day-to-day working command interpreter.

As an example of the primary intended usage, consider building a project which depends on the GNU autotools build system; users will typically run ./configure then make to build such a project. The configure shell script requires a shell script interpreter which is not normally present on Windows systems, but is provided by MSYS.

A common misunderstanding is that MSYS is "UNIX on Windows". MSYS by itself does not provide a native Windows compiler, nor a C library; therefore, it does not offer the capability to magically port UNIX programs to Windows, nor does it provide any UNIX specific functionality, such as case-sensitive filenames or POSIX specific APIs. Users seeking such functionality are advised to consider Cygwin, or Microsoft's Interix instead.

504 questions
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
134
votes
3 answers

Browsing Folders in MSYS

This will be the toughest question of the day. How do I navigate through my Windows folder structure within the MSYS shell? When I start the shell, all I see is a '~'. I type 'ls' and the folder is empty. I just want to know how to get to my c…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
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
107
votes
12 answers

Git Bash shell fails to create symbolic links

When I try to create a symbolic link from the Git Bash shell, it fails every time all the time: ln -s /c/Users/bzisad0/Work testlink Output: ln: creating symbolic link `testlink' to `/c/Users/bzisad0/Work': Permission denied The only thing it…
iconoclast
  • 21,213
  • 15
  • 102
  • 138
95
votes
8 answers

Package management in Git for Windows (Git Bash)?

I'm reading the github wiki for git-for-windows and it says that msys2 bundles pacman: https://github.com/git-for-windows/git/wiki/Package-management But when I invoke it I get: $ pacman bash: pacman: command not found Does anyone have an idea what…
carbolymer
  • 1,439
  • 1
  • 15
  • 30
68
votes
8 answers

Windows PATH to posix path conversion in bash

How can I convert a Windows dir path (say c:/libs/Qt-static) to the correct POSIX dir path (/c/libs/Qt-static) by means of standard msys features? And vice versa?
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
61
votes
7 answers

Where can I set path to make.exe on Windows?

When I try run make from cmd-console on Windows, it runs Turbo Delphi's make.exe but I need MSYS's make.exe. There is no mention about Turbo Delphi in %path% variable, maybe I can change it to MSYS in registry?
d9k
  • 1,476
  • 3
  • 15
  • 28
44
votes
9 answers

msys path conversion (or cygpath for msys?)

I need to pass /DEF:c:\filepath\myLib.def" command line option from a bash script to MS compiler/linker. The path is generated as part of build process by a bash script. Basically, the argument that my script passes…
Pavel P
  • 15,789
  • 11
  • 79
  • 128
41
votes
7 answers

Git-windows case sensitive file names not handled properly

We have the git bare repository in unix that has files with same name that differs only in cases. Example: GRANT.sql grant.sql When we clone the bare repository from unix in to a windows box, git status detects the file as modified. The working…
user298800
  • 421
  • 1
  • 4
  • 5
34
votes
1 answer

How to build OpenSSL with MinGW in Windows?

I want to build OpenSSL in Windows with MinGW, How can I do that? Please help me. Thanks.
Harry Fox
  • 603
  • 2
  • 6
  • 11
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
30
votes
6 answers

Sockets in MinGW

I was just trying to build netcat in MSYS using MinGW and realized that MinGW never really ported all of the BSD socket stuff to Windows (eg sys/socket.h). I know you can use Windows Sockets in MinGW, but why did they never make a Windows port of…
User1
  • 39,458
  • 69
  • 187
  • 265
28
votes
2 answers

Difference between GNUWin32 and cygwin

I can't seem to get a handle on the difference between the two. It seems that one (GNUWin32) is an layer on top of windows (like MSYS) and the other (cygwin) is something else (?) What does that mean? When would I use one over the other? Are they…
qwertymk
  • 34,200
  • 28
  • 121
  • 184
23
votes
2 answers

What is cygwin and what does it do

after searching about it i found some info (yet confusing for me) Cygwin is a Unix-like environment and command-line interface for Microsoft Windows. i found the above line in wikipedia but what does that mean? i'm not getting a clear idea about…
Ario
  • 336
  • 2
  • 3
  • 11
22
votes
2 answers

How do I pass an absolute path to the adb command via git bash for windows?

I'm trying to pass a unix style path to the Android adb command using a git bash (msysgit) but the shell is interpreting my path incorrectly. This is what I've tried so far: $ adb push myfile /mnt/sdcard/ failed to copy 'myfile' to 'C:/Program Files…
B Johnson
  • 2,408
  • 3
  • 20
  • 32
1
2 3
33 34