Installation des outils msys2  (version 07/09/2016)

sous windows 

version sept. 2016  F. Hecht. pour le cours Initiation au C++ Master I , Math UPMC .





1. Download and install msys2 version x86_64  

form https://msys2.github.io or Download MSYS2 from this page (choose 32 or 64-bit according to what version of Windows you are going to use it on, not what kind of executables you want to build, both versions can build both 32 and 64-bit binaries)

 

Answer question in following  windows : 


  1. After the install completes, click on the newly created "MSYS2 Shell" option under either MSYS2 64-bit or MSYS2 32-bit in the Start menu. Update MSYS2 according to the wiki (although I just do a 

  1.     pacman -Syu,
  2. ignore all errors and close the window and open a new one, this is not recommended and you should do what the wiki page says).
  3. Install  all this tools :
    pacman -S autoconf
    pacman -S automake-wrapper
    pacman -S bash
    pacman -S bash-completion
    pacman -S bison
    pacman -S bsdcpio
    pacman -S bsdtar
    pacman -S bzip2
    pacman -S catgets
    pacman -S coreutils
    pacman -S crypt
    pacman -S curl
    pacman -S dash
    pacman -S file
    pacman -S filesystem
    pacman -S findutils
    pacman -S flex
    pacman -S gawk
    pacman -S gcc-libs
    pacman -S grep
    pacman -S gzip
    pacman -S inetutils
    pacman -S info
    pacman -S less
    pacman -S lndir
    pacman -S make
    pacman -S man-db
    pacman -S mercurial
    pacman -S mingw-w64-x86_64-freeglut
    pacman -S mingw-w64-x86_64-gcc
    pacman -S mingw-w64-x86_64-gcc-fortran
    pacman -S mingw-w64-x86_64-gsl
    pacman -S mingw-w64-x86_64-hdf5
    pacman -S mingw-w64-x86_64-openblas
    pacman -S mintty
    pacman -S msys2-keyring
    pacman -S msys2-launcher-git
    pacman -S msys2-runtime
    pacman -S ncurses
    pacman -S pacman
    pacman -S pacman-mirrors
    pacman -S pactoys-git
    pacman -S patch
    pacman -S pax-git
    pacman -S perl
    pacman -S pkg-config
    pacman -S pkgfile
    pacman -S rebase
    pacman -S sed
    pacman -S tar
    pacman -S tftp-hpa
    pacman -S time
    pacman -S tzcode
    pacman -S unzip
    pacman -S util-linux
    pacman -S which

  1.   5. Open a MinGW-w64 shell:
    a) To build 32-bit things, open the "MinGW-w64 32-bit Shell"
    b) To build 64-bit things, open the "MinGW-w64 64-bit Shell"
  2.   6. Verify that the compiler is working by doing
    gcc -v


 Remark, the  shell comment is in the file

C:\msys2\

after Install a good text editor like notepad++ https://notepad-plus-plus.org

and to finish install.