Questions tagged [msys]

Set of GNU utilities packaged for Windows. Questions about msysgit should use [msysgit] instead.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to use MINGW64 instead of MSYS when using Git-Bash in MobaXTerm

When I try to use Git Bash inside MobaXTerm, it shows it as being MSYS. However, when I open Git-Bash directly (not via MobaXTerm), it shows it as being MINGW64. Going with the first approach, I am ...
user avatar
1 vote
1 answer
139 views

Why the shell of MSYS2 can find binary files without "exe" extension in the folder /usr/bin

In MSYS2, for the binary files in the folder /usr/bin, I find that I can call them by "name" or "name.exe". However, in the Windows file system, there are only binary files with &...
user avatar
  • 11
1 vote
0 answers
287 views

Difference between msys2.exe and mingw64.exe in MSYS installation

I have an MSYS installation on my Windows machine. Inside the root folder, there are two executables: msys2.exe mingw64.exe (There is also a mingw32.exe but that is just the 32-bit version of ...
user avatar
2 votes
0 answers
441 views

How do you set up MSYS2 to work like git for windows but with zsh? [closed]

Since the devs for git-for-windows are adamant of not expanding the installation size by 2MB to support zsh I am trying to see if I can just do it through msys2. So I can get zsh with the git-auto-...
user avatar
2 votes
1 answer
132 views

What are each of the executables in msys2 used for?

When I install msys2 using scoop. I noticed there are a few executables in the base folder. mingw32.exe mingw64.exe msys2.exe msys2_shell.cmd but I can't understand as to why there are a few of them ...
user avatar
1 vote
1 answer
45 views

How to install MSYS so that it recognizes non-MSYS binaries?

I have noticed that my MSYS bash doesn't "know" about the environment variables defined on my system. This means that if the folder C:\MyStuff\bin\ is in my path, and that folder contains ...
user avatar
  • 191
0 votes
1 answer
40 views

On mingw/pacman why does harfbuzz requires glib2, which requires python?

I was installing SFML from pacman, which requires freetype, and I got a nasty cyclic dependency between freetype and harfbuzz, which is another issue. My main question is about this chain of ...
user avatar
  • 409
2 votes
0 answers
357 views

Use mklink in MSYS2, with runas Administrator prompt?

I've seen Use mklink in msys - however, the answer there: cmd //c 'mklink link target' ... requires that you start a MSYS2 shell with administrative privileges first. What I would like instead, is ...
user avatar
  • 4,810
1 vote
1 answer
635 views

Php can not be found on MSYS2

I am using Msys2 on windows10 $ pacman -Sl | grep 'pacman ' msys pacman 5.2.1-6 [インストール済み] Then,I tried to install php. $pacman -S php error: can't find target. : php There is no package php. $ ...
user avatar
  • 497
1 vote
2 answers
6k views

MSYS shell in Windows Terminal Preview?

[EDITED to add:] It turns out that the actual problem here was a brainless typo I had made. The answer to my actual question is "yes, you just do the obvious thing and it works, if you aren't a moron"....
user avatar
0 votes
1 answer
631 views

Compile in msys2 mingw64 with -m32 option

Inside a msys2 mingw64 shell, I would like to compile a software with the -m32 option in order to run in 32bit mode. I have installed mingw-w64-x86_64-toolchain But when I compile with -m32, I have ...
user avatar
1 vote
1 answer
85 views

Is it possible to tell from CMD whether i have Cygwin or MSYS?

Is there a way that I can check, from a CMD whether a PC has Cygwin or MSYS (MSYS2, MINGW, MINGW-64...) installed? Note that I need to be able to differentiate Cygwin from MSYS. Thanks!
user avatar
  • 177
1 vote
1 answer
197 views

How can I use :perldo in vim on Windows?

I installed Git Bash and vim was pre-installed. I personally would rather use PCREs instead of vim's regular expressions, so I tried doing :perldo /s/foo/bar. The error was that it could not find msys-...
user avatar
0 votes
1 answer
58 views

Setting and MSYS Home and abbrviating the directory in the prompt line

I run Msys specifically for running OMNETpp - a simulation library. I modified the mingw environment setup scripts in order to get it to start with my home directory, ~/, by setting up HOME. Example ...
user avatar
  • 123
2 votes
1 answer
146 views

Poor SCP performance under windows

I'm seeing some performance issues with SCP under windows, in short, I'm maxing out at 61 MB/sec on a 1Gbps Ethernet connection. Now, Windows itself have detected the connection as 1Gbps, and I've ...
user avatar
0 votes
0 answers
265 views

ConEmu: How to call msys2 Portable as tab?

I mean to have several tabbed Msys2 terminals, all portable. Is there a shell that has tabs that you can use with mingw? suggests console2, but I could not find a portable version (if there is a ...
user avatar
0 votes
0 answers
729 views

Avoid adding unnecessay Windows %PATH% to Git Bash

Unlike Windows & Git Bash: Bash PATH to read Windows %PATH% system variable, I am trying to avoid Git Bash from adding many entries from windows %PATH%. The reason is my Windows %PATH% has many ...
user avatar
  • 495
0 votes
1 answer
277 views

How to make MSYS2 pacman believe I installed a package?

I am using MinGW-w64 and MSYS2 on Windows 10. Suppose that there are two libraries A and B. B depends on A, but it also depends on a lot of other things. The official version of library A has a few ...
user avatar
7 votes
3 answers
7k views

How to make MSYS (MSYS2) portable

On Windows, I have a C:\msys32 folder (containing what I believe to be a MSYS2 install) created for/by an ESP32 development environment (located in ~/esp). The MSYS home folder includes my Windows ...
user avatar
1 vote
0 answers
527 views

How to Build gtk3 [static] using msys2?

I am trying to build gtk+-3.22.30, because i cant find it [static link library] anywhere. i downloaded msys2 32bit, install mingw32 (gcc 7.3.0) added it to environment variables in windows. pkg-config ...
user avatar
  • 33
1 vote
1 answer
227 views

Is there any implementation of xdg-utils on MSYS2 or Cygwin?

Recently I have a project which need to to use tools in xdg-utils. However in order to make it compatible with windows, is there any implementation of this project on Windows? If there is not, is ...
user avatar
  • 735
0 votes
0 answers
427 views

Conemu Msys2-64 task doesn't have the right PATH

On ConEmu 161206 [64] {Stable} there is a task called {Bash:Msys2-64} whose content is: set CHERE_INVOKING=1 & C:\msys64\usr\bin\bash.exe --login -i -new_console:C:"C:\msys64\msys2.ico" If I ...
user avatar
  • 93
0 votes
1 answer
838 views

msys2 `which` is very slow on windows 10

The which command was never particularly fast, but since I switched to Windows 10, it is extremely slow. I have a generic .zshrc that I carry around, so it tests to see if some programs are available ...
user avatar
  • 963
11 votes
3 answers
33k views

Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some ...
user avatar
  • 676
2 votes
0 answers
698 views

ConEmu + msys2 zsh

On ConEmu page concerning the cygwin/msys terminal connector there are examples related to conemu-cyg-64.exe. I readapted them to conemu-msys2-64 in ConEmu 171109 as follows (line breaks are for ...
user avatar
  • 837
0 votes
1 answer
408 views

How do I use `ts` (timestamp) command in msys2/mingw

I have some problem with zsh, I need ts to log the execution time . zsh -xv 2>&1 | ts -i "%.s" > zsh_startup.log But zsh: command not found: ts pacman -Ss ts got a lot of unrelevernt ...
user avatar
  • 835
0 votes
0 answers
208 views

MSYS2 can't find targeted directories

I am building FFMPEG on windows. I installed MSYS2 and all the rest of the tools and libs I need for that task. As long as I don't need to configure external libraries,like h264, all is good. But in ...
user avatar
2 votes
2 answers
1k views

Install haskell in existing msys2

Is there any simple way to install haskell / cabal / stack in an existing msys2 installation? I can't find one. Note: Apparently it is possible to install both at the same time using MinGHC, see here....
user avatar
  • 219
4 votes
1 answer
2k views

Device names in MSYS2 dd

Which is the equivalent of: dd if=/dev/sda ... dd if=/dev/sda1 ... for dd.exe in MSYS2 in coreutils Does Chrysocome syntax apply?
user avatar
  • 837
3 votes
0 answers
253 views

Why does enabling Hyper-V accelerate MSYS2's process launching?

When I run this loop in MSYS2's Bash shell function test() { bcdedit | grep hypervisorlaunchtype printf "Press ENTER to begin..." 1>&2 read # warm-up for ((i=0; i<"$1"; ...
user avatar
  • 23.1k
2 votes
0 answers
459 views

Can't get msys2 to open windows home directory on startup

See this Github issue. Basically, I am trying to launch the msys2 shell and have the startup folder (and $HOME) refer to my Windows user home directory. Things I've tried: I tried changing the /etc/...
user avatar
  • 261
0 votes
1 answer
728 views

How to use msys2 git and ssh executables for Pycharm git integration

I am using Pycharm 2017.1 for Python development on my Windows 7 computer. Naturally, I use the git integration plugin for maintaining a git repo of my project. I am having issues using the git ...
user avatar
  • 133
0 votes
1 answer
1k views

How to remove pip from python in msys2 enviroment?

I installed pip on msys2 (portabledevops) with python get-pip.py but I get this error $ pip search youtube_dl Traceback (most recent call last): File "/usr/bin/pip", line 7, in <module> ...
user avatar
  • 503
1 vote
1 answer
891 views

msys path error due to space in the directory name

I launched the msys console and checked the path environment variable. I got the following: $ $PATH sh: /c/Users/wud/AppData/Local/Continuum/Miniconda3/Library/mingw-w64/bin/:.:/us r/local/bin:/mingw/...
user avatar
  • 123
8 votes
2 answers
11k views

How can I change my MinGW/MSYS + mintty home directory?

I use mintty as my console emulator for MinGW/MSYS. Recently (I'm not certain exactly when), the home directory used by this combination changed from my Windows user folder (/c/Users/<me>/) to /...
user avatar
  • 984
1 vote
1 answer
993 views

Reading environment variable in command alias causes evaluating it?

I have simple alias for writing to log files (this is what I have in my .profile file): logtee() { ${TEST_LOG_FOLDER:?"empty_log_folder"} tee -a $TEST_LOG_FOLDER/$1 } I'm reading the folder ...
user avatar
  • 159
1 vote
0 answers
2k views

how to install sudo on msys shell

I work with msys shell on windows 8.1 but when I use "sudo" I get this error bash: sudo: command not found and my $PATH is : /usr/local/bin:/usr/bin:/bin:/opt/bin:/c/ProgramData/Oracle/Java/...
user avatar
3 votes
1 answer
2k views

msys2 create a sym link into windows folder location

I have just started to use msys2. I wanted to make a sym link to a folder on my d:. I can access it like this: cd /d/mytestfolder/ I tried: When I do ln -s /d/mytestfolder/ testfolder - this seems ...
user avatar
  • 1,349
3 votes
1 answer
3k views

MSYS2 permissions

In Windows 10, with MSYS2 I set my fstab to: none / cygdrive binary,posix=0,acl,user 0 0 I am unable to set execute permissions with chmod, despite having acl set in the fstab: # echo > foo # ...
user avatar
  • 837
3 votes
1 answer
863 views

pandoc - markdown to man page tables not formatted (on msys2)

I am trying to use pandoc (if someone has a better conversion program I am all ears, please not ruby-dependent) to convert markdown files into manpages. It works fine until I go to do a doc with a ...
user avatar
  • 324
2 votes
1 answer
2k views

Source windows environment variables in MSYS

I have a setenv.cmd script which contains paths for the windows cmd prompt: set CURRENT_SCRIPT_DIR=%~dp0 set PATH=%PATH%;%CURRENT_SCRIPT_DIR%\bin But I'm using bash (via msys in the git for windows ...
user avatar
  • 121
14 votes
5 answers
13k views

"git mv *" returns "bad source" in Powershell

When inside a git repository in Powershell or CMD, issuing git mv * whatever will return fatal: bad source, source=*, destination=whatever This works fine when using MSYS (Git Bash).
user avatar
  • 241
8 votes
1 answer
8k views

How do I open the current directory in mingw's msys in file explorer?

Assume I'm in: $ pwd /home/foo Now I want to open up this /home/foo in Windows 10's file explorer. How do I do this?
user avatar
  • 208
0 votes
0 answers
327 views

How to correctly pin MSYS to task bar in Windows 8?

I use MSYS/MinGW a lot on Windows 8.1 and wanted to create a shortcut on the taskbar at the bottom. What I did is to lauch MSYS, and once it appears on the task bar, choose "pin this program to task ...
user avatar
  • 1,378
2 votes
0 answers
383 views

Windows gVim, shell starts in HOME instead of working directory

I've recently have gotten sick of constantly switching between Windows and Linux and installed gVim and MSYS2 on Windows 7. After a couple hours of searching I have a .vimrc that makes !command, make, ...
user avatar
  • 21
13 votes
3 answers
19k views

Is the option "Use Git and optional Unix tools from the Windows Command Prompt" dangerous?

When installing Git, it offers the option to add all of its msys *nix tools into your PATH, however it warns: Warning: This will override Windows tools like "find" and "sort". Only use this option ...
user avatar
21 votes
8 answers
22k views

Change default shell on MSYS2

I want to change MSYS2's default shell from bash to zsh. I've tried chsh - not available in MSYS2. Editing /etc/passwd does nothing. It seems to be ignored. I took a look at the batch scripts in ...
user avatar
  • 365
0 votes
1 answer
1k views

Install msys2 so c:/ is /

I'm trying to switch from cygwin to msys2. I use cygwin extensively for the Unix tools, not so much for building software but just as my command-line environment to make Windows more Linux-like - I ...
user avatar
  • 275
8 votes
1 answer
7k views

How can I use mintty as the terminal emulator for MinGW/MSYS?

The default "terminal emulator" in Windows leaves a lot to be desired. I see mintty recommended as a lightweight alternative with specific support for MinGW/MSYS, but not much information on how to ...
user avatar
  • 984
1 vote
1 answer
2k views

Escaping asterisk * in Bash on Windows

The following command works in GNU Bash on FreeBSD but not in Git Bash on Windows: curl -X PUT https://example.com/_config/cors/origins -d '"*"' The intended result is to send a PUT request to https:...
user avatar
  • 300