Fail to configure the mrtrix3 install

Dear mrtrix3 experts,

Hello, I am a new beginner to use MRtrix3, and am trying to install MRtrix first using msys2.

I got a error message of

MRtrix build type requested: release version

Detecting OS: windows
Looking for compiler [/usr/bin/g++=5.5]: not found

ERROR: no suitable compiler found!



  Set the CXX environment variable to inform 'configure' of the path to the
  compiler on your system, as follows:
    $ export CXX=/usr/bin/g++-5.5
    $./configure
  (amend with the actual path to the compiler on your system)

  If you are using a compiler other than gcc or clang, you can also set the CXX_ARGS
  environment variable to specify how your compiler expects different arguments
  to be presented on the command line, for instance as follows:
    $ export CXX_ARGS="-c CFLAGS SRC -o OBJECT"
    $ ./configure


  See the file 'configure.log' for details. If this doesn't help and you need
  further assistance, please post on the MRtrix3 community forum
  (http://community.mrtrix.org/), and make sure to include the full contents of
  the 'configure.log' file.

I tried suggested options above, but it still gives the same error message.

What should I do?

Thank you!

Hi @jean2033,

The line:

$ export CXX=/usr/bin/g++-5.5

needs to be altered to reflect the path of the compiler installed on your system. One way you could go about this is:

  1. Type “g++” at the terminal, then pressing Tab twice: this should provide a list of commands within your PATH that start with the string “g++”.

  2. If e.g. there is a “g++-6.0” installed, you would then run the command:

    which g++-6.0
    

    to discover where that is on your file system.

  3. Save the CXX environment variable accordingly:

    export CXX=/usr/bin/g++-6.0
    ./configure
    

Rob