How to install mingw-W64-x86_64-GCC with MSYS2 if I get the message mingw64 is already installed on the system

Asked

Viewed 901 times

1

I am trying to install GCC on my Windows station to do new tests with the use of GCC and some C compiled programs that can be ported to Windows.

I’ve used several versions of GCC for Windows, some based on Cygwin others on Mingw itself, but now I want to focus on Msys2.

But even after I have removed all the applications I am not able to install GCC with Msys2.

I’m using the following command

$ pacman -S mingw-w64-x86_64-gcc

Then I get the following message:

resolvendo dependências...
procurando por pacotes conflitantes...
atenção: dependência cíclica detectada:
atenção: mingw-w64-x86_64-gcc-libgfortran será instalado antes de sua dependência mingw-w64-x86_64-gcc-libs

Pacotes (16) mingw-w64-x86_64-binutils-2.27-2  mingw-w64-x86_64-bzip2-1.0.6-5
             mingw-w64-x86_64-crt-git-5.0.0.4745.d2384c2-1
             mingw-w64-x86_64-gcc-libgfortran-6.2.0-2
             mingw-w64-x86_64-gcc-libs-6.2.0-2  mingw-w64-x86_64-gmp-6.1.1-1
             mingw-w64-x86_64-headers-git-5.0.0.4747.0f8f626-1
             mingw-w64-x86_64-isl-0.17.1-1  mingw-w64-x86_64-libiconv-1.14-5
             mingw-w64-x86_64-libwinpthread-git-5.0.0.4741.2c8939a-1
             mingw-w64-x86_64-mpc-1.0.3-2  mingw-w64-x86_64-mpfr-3.1.4.p3-4
             mingw-w64-x86_64-windows-default-manifest-6.4-2
             mingw-w64-x86_64-winpthreads-git-5.0.0.4741.2c8939a-1
             mingw-w64-x86_64-zlib-1.2.8-9  mingw-w64-x86_64-gcc-6.2.0-2

Tamanho total instalado:  357,21 MiB

:: Continuar a instalação? [S/n] S
(16/16) verificando chaves no chaveiro             [#####################] 100%
(16/16) verificando integridade do pacote          [#####################] 100%
(16/16) carregando arquivos do pacote              [#####################] 100%
(16/16) verificando conflitos de arquivo           [#####################] 100%
erro: falha em submeter a transação (arquivos conflitantes)
mingw-w64-x86_64-libiconv: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gmp: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-libwinpthread-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gcc-libgfortran: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gcc-libs: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-bzip2: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-zlib: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-binutils: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-headers-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-crt-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-isl: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-mpfr: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-mpc: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-windows-default-manifest: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-winpthreads-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gcc: /mingw64 existe no sistema de arquivos
Ocorreram erros e, portanto, nenhum pacote foi atualizado.

consu_000@SocialSLA MSYS ~

What must I do to solve such a problem?

1 answer

1

To solve such problem just create a name folder mingw64 at root when running Msys2 shell.

This problem affects the 64bit version that waits for the directory to install the packages.

see below:

consu_000@SocialSLA MSYS ~
$ mkdir /mingw64

consu_000@SocialSLA MSYS ~
$ pacman -S mingw-w64-x86_64-gcc
resolvendo dependências...
procurando por pacotes conflitantes...
atenção: dependência cíclica detectada:
atenção: mingw-w64-x86_64-gcc-libgfortran será instalado antes de sua dependência mingw-w64-x86_64-gcc-libs

Pacotes (16) mingw-w64-x86_64-binutils-2.27-2  mingw-w64-x86_64-bzip2-1.0.6-5
             mingw-w64-x86_64-crt-git-5.0.0.4745.d2384c2-1
             mingw-w64-x86_64-gcc-libgfortran-6.2.0-2
             mingw-w64-x86_64-gcc-libs-6.2.0-2  mingw-w64-x86_64-gmp-6.1.1-1
             mingw-w64-x86_64-headers-git-5.0.0.4747.0f8f626-1
             mingw-w64-x86_64-isl-0.17.1-1  mingw-w64-x86_64-libiconv-1.14-5
             mingw-w64-x86_64-libwinpthread-git-5.0.0.4741.2c8939a-1
             mingw-w64-x86_64-mpc-1.0.3-2  mingw-w64-x86_64-mpfr-3.1.4.p3-4
             mingw-w64-x86_64-windows-default-manifest-6.4-2
             mingw-w64-x86_64-winpthreads-git-5.0.0.4741.2c8939a-1
             mingw-w64-x86_64-zlib-1.2.8-9  mingw-w64-x86_64-gcc-6.2.0-2

Tamanho total instalado:  357,21 MiB

:: Continuar a instalação? [S/n] S
(16/16) verificando chaves no chaveiro             [#####################] 100%
(16/16) verificando integridade do pacote          [#####################] 100%
(16/16) carregando arquivos do pacote              [#####################] 100%
(16/16) verificando conflitos de arquivo           [#####################] 100%
(16/16) verificando espaço em disco disponível     [#####################] 100%
:: Processando alterações do pacote...
( 1/16) instalando mingw-w64-x86_64-libiconv       [#####################] 100%
( 2/16) instalando mingw-w64-x86_64-gmp            [#####################] 100%
( 3/16) instalando mingw-w64-x86_64-libwinpthr...  [#####################] 100%
( 4/16) instalando mingw-w64-x86_64-gcc-libgfo...  [#####################] 100%
( 5/16) instalando mingw-w64-x86_64-gcc-libs       [#####################] 100%
( 6/16) instalando mingw-w64-x86_64-bzip2          [#####################] 100%
( 7/16) instalando mingw-w64-x86_64-zlib           [#####################] 100%
( 8/16) instalando mingw-w64-x86_64-binutils       [#####################] 100%
( 9/16) instalando mingw-w64-x86_64-headers-git    [#####################] 100%
(10/16) instalando mingw-w64-x86_64-crt-git        [#####################] 100%
(11/16) instalando mingw-w64-x86_64-isl            [#####################] 100%
(12/16) instalando mingw-w64-x86_64-mpfr           [#####################] 100%
(13/16) instalando mingw-w64-x86_64-mpc            [#####################] 100%
(14/16) instalando mingw-w64-x86_64-windows-de...  [#####################] 100%
(15/16) instalando mingw-w64-x86_64-winpthread...  [#####################] 100%
(16/16) instalando mingw-w64-x86_64-gcc            [#####################] 100%

consu_000@SocialSLA MSYS ~

Browser other questions tagged

You are not signed in. Login or sign up in order to post.