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
1answer
16 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
108 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. $ ...
0
votes
1answer
826 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"....
0
votes
0answers
24 views

Why does the GNU C Preprocessor cpp freeze my MSYS2 bash (mintty.exe) when writing to stdout, even post SIGINT?

Using the MINGW64 Bash from MSYS2 on Windows 7 64 Bit I'm getting a weird behavior for the following command sequence: echo "Hello World" > foo cpp foo - It outputs the following (correctly): # ...
0
votes
0answers
219 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 ...
0
votes
1answer
70 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!
1
vote
1answer
53 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-...
0
votes
1answer
34 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 ...
1
vote
1answer
95 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 ...
0
votes
0answers
176 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 ...
0
votes
0answers
353 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 ...
0
votes
1answer
225 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 ...
6
votes
3answers
3k 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 ...
1
vote
0answers
341 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 ...
1
vote
1answer
126 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 ...
0
votes
0answers
304 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 ...
0
votes
1answer
570 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 ...
5
votes
3answers
17k 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 ...
2
votes
0answers
566 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 ...
0
votes
1answer
246 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 ...
0
votes
0answers
127 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 ...
2
votes
2answers
830 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....
4
votes
1answer
750 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?
3
votes
0answers
239 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"; ...
2
votes
0answers
322 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/...
0
votes
1answer
608 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 ...
0
votes
1answer
823 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> ...
1
vote
1answer
648 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/...
7
votes
2answers
6k 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 /...
1
vote
1answer
712 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 ...
1
vote
0answers
983 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/...
1
vote
1answer
975 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 ...
2
votes
1answer
2k 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 # ...
3
votes
1answer
757 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 ...
2
votes
1answer
1k 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 ...
12
votes
3answers
6k 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).
7
votes
1answer
5k 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?
0
votes
0answers
248 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 ...
2
votes
0answers
325 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, ...
12
votes
3answers
13k 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 ...
15
votes
8answers
15k 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 ...
0
votes
1answer
800 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 ...
7
votes
1answer
6k 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 ...
1
vote
1answer
1k 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:...
0
votes
1answer
62 views

installing swig i had to untar something using msys, but it doesn't work

i installed MinGW and MSYS required to install swig. using msys terminal it asked me to download pcre-8.36.tar.bz2 form pcre site, and asked me to: "Build PCRE as a static library using the Tools/pcre-...
2
votes
1answer
2k views

tmux on Windows (msys2) and non-admin fails

Whe trying to run tmux as a non-admin I'm greeted with failed to connect to server: Permission denied It works fine when running msys-bash-mintty as administrator though. Where should I start ...
5
votes
3answers
8k views

MSYS2 home folder: show ~

I've just installed MSYS2, and to have it use my Windows user folder as $HOME, I put this in /etc/bash.bashrc: HOME=$USERPROFILE And that works fine when I just run cd, except the prompt doesn't show ...
5
votes
2answers
5k views

Add “Open MSYS terminal here” in the Windows right click context menu?

In Windows file explorer,if I hold shift + right-click on a folder (in a folder too) I can choose to Open command window here. I'd really like to add an Open MSYS terminal window here to the popup ...
1
vote
0answers
235 views

Why do MinGW and MSYS have separate versions of gcc?

This is my understanding of the relationship between MinGW and MSYS. When installing MinGW and its gcc toolchain, installing MSYS is optional. With MSYS installed, you get bash and a few other tools ...