Skip to content

Mrtrix3

Christopher J. Steele edited this page Jun 30, 2022 · 4 revisions

Installing Mrtrix3


MRtrix3 is now available as a conda package and easily installable once you have anaconda up and running.

  • conda install -c mrtrix3 mrtrix3

--- Older advice specific to Windows follows ---

MRtrix3 Download Link: https://www.mrtrix.org/download/

Installing MRtrix3 on Windows


For Windows Download Through MSYS2

Following steps from MYSY2 Link: https://www.msys2.org/

  1. Download installer: msys2-x86_64-20210604.exe
  2. Run the installer (Requires 64 bit Windows 7 or newer) and download to preferred folder.
  3. When installation is complete run “MSYS2 64bit”.
  4. In the terminal, download package database and base packages by running pacman -Syu. Then click [y] until all is downloaded and the terminal closes.
  5. Go to the folder where it was downloaded (in the start menu there will be four applications within the folder) and open "MSYS2 MSYS".
  6. In the terminal run pacman -Su and proceed with the installation.
  7. In the same terminal download tools and mingw-w64 GCC (to compile) for MSYS2 by running the line $ pacman -S --needed base-devel mingw-w64-x86_64-toolchain. Then click enter for default (“all”) download. Proceed with installation.
  8. Close the terminal.

We are almost there! Now download MRtrix3

Following steps from : https://www.mrtrix.org/download/windows-msys2/

  1. In the start menu go to the folder and open “MSYS MinGW 64-bit”
  2. In the terminal install MRtrix3 by running tag=$(basename $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/MRtrix3/mrtrix3/releases/latest)) && curl -sL https://github.com/MRtrix3/mrtrix3/releases/download/${tag}/mingw-w64-x86_64-mrtrix3-${tag}-1-x86_64.pkg.tar.xz -O && pacman -U mingw-w64-x86_64-mrtrix3-${tag}-1-x86_64.pkg.tar.xz
  3. MRtrix3 is ready to use!

Useful Links

List of commands: https://mrtrix.readthedocs.io/en/latest/reference/commands_list.html