MSYS2 ("minimal system 2") is a software distribution and a development platform for Microsoft Windows, based on Mingw-w64 and Cygwin, that helps to deploy code from the Unix world on Windows. -- Source: https://en.wikipedia.org/wiki/Mingw-w64#MSYS2
Questions tagged [msys2]
38 questions
10
votes
2 answers
MSYS2 and "At least one valid and enabled repository required for this action to succeed."
I have separate MSYS2 32-bit and 64-bit installed on a Windows 8.1 test machine. MSYS2 was acquired from the MinGW-64 download page. Each installation has developer tools installed like GCC, Git, GDB, Make, etc.
I'm having trouble updating MSYS2.…
jww
- 11,918
- 44
- 119
- 208
5
votes
3 answers
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 ~ anymore as the current path when I'm there.…
tacospice
- 181
- 1
- 6
5
votes
2 answers
Can the Windows %PROGRAMFILES(X86)% environment variable be accessed in Cygwin or Git Bash?
In Git Bash and Cygwin, I can easily access the Windows %PROGRAMFILES% environment variable:
$ echo $PROGRAMFILES
C:\Program Files
$ echo ${PROGRAMFILES}
C:\Program Files
However, due to the brackets/parentheses in the variable name, I cannot…
AJM
- 222
- 1
- 11
3
votes
0 answers
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 mingw64, I believe).
Both executables launch a terminal…
mydoghasworms
- 792
- 2
- 6
- 18
3
votes
2 answers
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". I'm accepting the answer that basically says…
Gareth McCaughan
- 173
- 2
- 8
2
votes
1 answer
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 "exe" extensions. The "ls" and "file" commands can output information…
myy1966
- 21
- 1
2
votes
0 answers
How to resolve Windows-ish file paths too in MSYS2?
How can I configure MSYS2 to resolve Windows-ish paths as if they were MSYS-ish paths? For example one of dependency of my application fails to find a file at:
Error: Cannot find module…
ceremcem
- 575
- 8
- 22
2
votes
0 answers
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 start the MSYS2 shell normally, and then type some…
sdaau
- 5,316
- 8
- 60
- 77
2
votes
1 answer
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.
$ pacman -Ss php
mingw32/mingw-w64-i686-doxygen…
whitebear
- 655
- 4
- 12
- 26
2
votes
2 answers
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 the following…
Louis Caron
- 121
- 4
2
votes
1 answer
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 ran some tests to the same servers over SMB, which…
JustDanyul
- 131
- 3
1
vote
1 answer
Bash terminals launched from windows UI have an invalid `!::=::\` variable set
When I run printenv one of the returned variables is !::=::\. I noticed that the variable exists because docker does not work correctly with it set.
$ printenv | grep ::
!::=::\
$ docker stack deploy keycloak -c keycloak.yml
unexpected environment…
anderio Moga
- 113
- 3
1
vote
0 answers
MSYS2 cannot be updated in winget
winget v1.4.10173
While performing winget upgrade --all I got the folowing result:
Name Id Version Available Source
------------------------------------------------------------
MariaDB 10.5 (x64) MariaDB.Server 10.5.18.0…
pogurek
- 43
- 5
1
vote
0 answers
MSYS2 man: can't open the manpath configuration file /etc/man_db.conf
I'm on Windows 10 but using bash and MSYS2 (mingw64). I just installed man using MSYS2. The problem is when typing a command like man echo (can be any command; it doesn't have to be echo), I get this error:
“man: can't open the manpath…
Verpous
- 131
- 3
1
vote
0 answers
try compile ffmpeg with cuda 11.1 on window10 but get error when run make -j 8
I am trying to compile ffmpeg with cuda 11.1 on Windows. I run configure like this:
./configure --arch=x86_64 --target-os=mingw64 --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --enable-gpl --enable-libx264…
Leo
- 11
- 1