Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install gcc on msys2 #293

Closed
Arnold1 opened this issue Jul 14, 2015 · 8 comments
Closed

install gcc on msys2 #293

Arnold1 opened this issue Jul 14, 2015 · 8 comments

Comments

@Arnold1
Copy link

Arnold1 commented Jul 14, 2015

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

@mingwandroid
Copy link
Member

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

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

@Arnold1
Copy link
Author

Arnold1 commented Jul 14, 2015

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

@mingwandroid
Copy link
Member

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

@Arnold1
Copy link
Author

Arnold1 commented Jul 14, 2015

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

@Alexpux
Copy link
Member

Alexpux commented Jul 14, 2015

PATH=/mingw64/bin:$PATH which gcc

@mingwandroid
Copy link
Member

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.

@Arnold1
Copy link
Author

Arnold1 commented Jul 14, 2015

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

@mingwandroid
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants