How to Install MSYS2 with MinGW-w64

preview_player
Показать описание

Run the MSYS2 shell after the installation and update the core with the command:
update-core

Update all of the installed packages by running the command:
pacman -Su

Install the compiler tools by running the command:
pacman --needed -S git mingw-w64-x86_64-gcc base-devel

Test your installation with the commands:
git --version
make --version
gcc --version
Рекомендации по теме
Комментарии
Автор

correct installation command for latest version in mingw64 shell is:
pacman -Su git make mingw-w64-x86_64-{gcc, cmake, icu, jemalloc, zlib}

Notezl
Автор

Thank you so much, it was really great to have such tutorials

subratnayak
Автор

Thanks for this clear tutorial. Look like a little update necessary.

hakansimsek
Автор

update-core : bash: update-core: command not found . Pacman -Su simply does nothing. Why is it so complicated?

kordaling
Автор

update-core command not working anymore. You can use pacman -Syyu

IbrahimSerhatYilmaz
Автор

When you will run 'update-core' command, you will get command not found error. Use 'pacman -Syuu'.
Thanks

abulasarsayyad
Автор

When I install finish, i see ucrt64 and other open others folder msys2.exe I seeing msys when I write update-core.i see upate core command no found.
Please sir tell me 🥺😞

kalpendrayadav
Автор

I coudn't find the minGW-w64_shell.bat file.. whats should i do? i already did the "pacman -Syuu" for the upgrade..

thegoddessgeek
Автор

hello there the ""gcc --version" command is not working what should i do? Is there anything else I can use?

jovinrichard
Автор

"If update-core performed any updates, you must restart the MSYS2 shell, so close it and open it again by running msys2_shell.bat (or mingw64_shell.bat if you plan to install and test the MinGW-w64 packages) from the installation folder." Where can I find those batch files? They seem nowhere to be found.

DoubleATam
Автор

It finds make and gcc but not git. I think something to do with filepath?
EDIT: Never mind I simply didn't type git when doing the installation. It finds it now

wontuserealname
Автор

Thank you very much. This video will help me a lot.

HomoSiliconiens
Автор

:: Sincronizando las bases de datos de los paquetes...
error: no se pudo obtener el archivo «mingw32.db» desde repo.msys2.org: Connection timed out after 10001 milliseconds
mingw32 está actualizado
error: no se pudo obtener el archivo «mingw64.db» desde repo.msys2.org: Connection timed out after 10001 milliseconds
mingw64 está actualizado

Solution?

fpradove
Автор

Very good tutorial. Do I need to change anything in the commands if I want to install on 32 bit Windows?

masterofinsanity
Автор

What is downloaded is a crdownload file which is used by the Chrome browser. I use edge, because I do not like Chrome due to their "666" logo. Is there a way to install msys2 without Chrome?

haroldmcbroom
Автор

Installed and everything, doesnt work in Clion.

kanethemessiah
Автор

Didn't work! I keep getting paxman bash error 😢

SonicFan
Автор

when i use $ pacman -Syu
i got error like this error: failed retrieving file 'mingw32.db' from 148.251.42.38 : Connection timed out after 10000 milliseconds
could you please explain why?

johnkarippery
Автор

I NEED TO ADD IT TO THE PATH. ISNT I?
תודה על המדריך אחי

gerimeni