Msys2-packages: install gcc on msys2

Created on 14 Jul 2015  路  8Comments  路  Source: msys2/MSYS2-packages

Hi,

whats the right package to install gcc on msys2?

pacman -S gcc
pacman -S mingw-w64-x86_64-gcc

I use: msys2-x86_64-20150512.exe

Thanks,
A

Most helpful comment

Why did you try to do that? If you want MSYS2's MinGW-w64 x86_64 GCC then you should install the mingw-w64-x86_64-toolchain package group via:

pacman -S mingw-w64-x86_64-toolchain

All 8 comments

Which GCC do you want? MSYS2 GCC or MinGW-w64 GCC?

Please read the wiki: sourceforge.net/p/msys2/wiki/Home/

i tried to install http://sourceforge.net/projects/mingw-w64/files/latest/download
and get the error: Cannot download repository.txt [0]

Why did you try to do that? If you want MSYS2's MinGW-w64 x86_64 GCC then you should install the mingw-w64-x86_64-toolchain package group via:

pacman -S mingw-w64-x86_64-toolchain

ok. where is mingw-w64-x86_64-gcc installed to? which mingw-w64-x86_64-gcc or which gcc doesnt find gcc...

PATH=/mingw64/bin:$PATH which gcc

Again, please read the Wiki. Here is a clickable link: https://sourceforge.net/p/msys2/wiki/Home/

You should use mingw64_shell.bat as that sets the correct environment for using our MinGW-w64 x86_64 toolchain.

ok. i didnt see that minw64_shell.bat was installed...

whats the diff between the following packages? i didnt find more infos in the wiki...
pacman -S mingw-w64-x86_64-toolchain
pacman -S gcc

http://sourceforge.net/p/msys2/wiki/MSYS2%20introduction/ explains it:

Each of the subsystems provides its own native (i.e. target=host) compiler toolchain, in msys2-devel, mingw-w64-i686-toolchain, and mingw-w64-x86_64-toolchain

Was this page helpful?
0 / 5 - 0 ratings