Questions tagged [msys2]

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

50 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
  • 12,722
9
votes
3 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…
7
votes
1 answer

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…
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
5
votes
1 answer

Replace server address by IP in curl

I mean to use the IP instead of the server name, to directly curl a file from http://.... I am under Msys2, Win 10 (that's why post here and not in askubuntu, e.g.), but I guess it would be be the same in Linux. I couldn't make this work. I post…
5
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…
4
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
  • 43
4
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…
3
votes
2 answers

How to find partition number or starting offset given volume attributes?

To clone a partition using dd.exe which comes with MSYS2 for Windows, we require 3 pieces of information. physical drive name partition starting offset (in MiB) partition size (in MiB) dd if=physical_drive_name of=backup.img bs=1M…
machine_1
  • 439
3
votes
0 answers

hiding files with Windows "hidden" attribute in msys2 "ls"

I'm running msys2 on Windows 11: $ uname -a MINGW64_NT-10.0-22621 couch-potato 3.4.9.x86_64 2023-09-15 12:15 UTC x86_64 Msys And I have it configured to use my Windows home directory (/c/Users/) rather than the default home directory…
user31708
  • 131
3
votes
1 answer

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
  • 133
3
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
  • 755
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
  • 665
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
  • 6,008
2
votes
1 answer

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!
j4x
  • 267
  • 3
  • 13
1
2 3 4