Questions tagged [msys]
Set of GNU utilities packaged for Windows. Questions about msysgit should use [msysgit] instead.
91
questions
3
votes
1
answer
637
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 &...
5
votes
0
answers
1k
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 ...
2
votes
0
answers
979
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-...
2
votes
1
answer
513
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 ...
1
vote
1
answer
216
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 ...
0
votes
1
answer
75
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 ...
2
votes
0
answers
507
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 ...
2
votes
1
answer
1k
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.
$ ...
3
votes
2
answers
10k
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"....
3
votes
2
answers
3k
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 ...
1
vote
1
answer
196
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
1
answer
319
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
1
answer
202
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 ...
2
votes
1
answer
250
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
0
answers
349
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
0
answers
1k
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
1
answer
385
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 ...
8
votes
3
answers
10k
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
0
answers
676
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
1
answer
382
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
0
answers
495
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
1
answer
1k
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 ...
11
votes
3
answers
45k
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
0
answers
777
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
1
answer
620
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
0
answers
361
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 ...
3
votes
2
answers
2k
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
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?
3
votes
0
answers
283
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
0
answers
709
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/...
1
vote
1
answer
857
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
1
answer
2k
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
1
answer
1k
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/...
11
votes
3
answers
14k
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
1
answer
1k
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
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/...
9
votes
2
answers
4k
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 ...
3
votes
1
answer
4k
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
1
answer
1k
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
1
answer
3k
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 ...
17
votes
5
answers
19k
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).
9
votes
1
answer
11k
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
0
answers
339
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
0
answers
441
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, ...
17
votes
3
answers
22k
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 ...
25
votes
10
answers
27k
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
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 ...
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 ...
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:...
0
votes
1
answer
82
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-...