# MRtrix build error - MacOS Big Sur

**URL:** <https://community.mrtrix.org/t/mrtrix-build-error-macos-big-sur/5192>\
**Category:** Uncategorized\
**Tags:** installation, error\
**Created:** [September 7, 2021, 6:53am UTC](https://community.mrtrix.org/t/mrtrix-build-error-macos-big-sur/5192 "2021-09-07T06:53:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohannesBech](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@JohannesBech](https://community.mrtrix.org/u/JohannesBech)\
**Post date:** [September 7, 2021, 6:53am UTC](https://community.mrtrix.org/t/mrtrix-build-error-macos-big-sur/5192/1 "2021-09-07T06:53:59Z")

</div>

Dear forum,

I’ve encountered problems with the MRtrix 3 build. I have followed the instructions page using homebrew to install the dependencies. The MRtrix ./configure looks ok, but when I ./build the following issue repeatedly shows (I have tried to reinstall qt5 and eigen, but this did not resolve the issue). In the terminal the following is stated:

**ERROR: ( 9/546) [CC] tmp/core/file/dicom/tree.o**

clang++ -c -std=c++11 -DMRTRIX\_BUILD\_TYPE=“release version” -DMRTRIX\_MACOSX -fPIC -mmacosx-version-min=11.5 -DMRTRIX\_WORD64 -DMRTRIX\_HAVE\_EIGEN\_UNSUPPORTED\_SPECIAL\_FUNCTIONS -DMRTRIX\_TIFF\_SUPPORT -idirafter /usr/local/Cellar/libtiff/4.3.0/include -DMRTRIX\_PNG\_SUPPORT -idirafter /usr/local/Cellar/libpng/1.6.37/include/libpng16 -DEIGEN\_FFTW\_DEFAULT -idirafter /usr/local/Cellar/fftw/3.3.9\_1/include -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -idirafter /usr/local/Cellar/eigen/3.4.0/include/eigen3 -DEIGEN\_DONT\_PARALLELIZE core/file/dicom/tree.cpp -o tmp/core/file/dicom/tree.o

failed with output

In file included from core/file/dicom/tree.cpp:17:

In file included from ./core/file/path.h:30:

In file included from ./core/exception.h:24:

./core/types.h:326:9: **error: redefinition of ‘Vector3’ as different kind of symbol**

using Vector3 = Matrix\<MR::default\_type, 3, 1\>;

^

/usr/local/Cellar/eigen/3.4.0/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: previous definition is here

/var/folders/6y/xc03d1\_j6d1frl\_spyvwprhm0000gn/T/tmpR1MnPH

I hope someone has an idea how to resolve this problem so I can get MRtrix 3 up and running.

Best,  
Johannes

---

<div class="post-metadata">

**Author:** ![maxpietsch](https://community.mrtrix.org/user_avatar/community.mrtrix.org/maxpietsch/32/25_2.png) [@maxpietsch](https://community.mrtrix.org/u/maxpietsch)\
**Post date:** [September 7, 2021, 8:55am UTC](https://community.mrtrix.org/t/mrtrix-build-error-macos-big-sur/5192/2 "2021-09-07T08:55:59Z")

</div>

There are currently [issues](https://github.com/MRtrix3/mrtrix3/pull/2368) related to eigen 3.4. I think the fix is pretty much ready but if you do not want to wait for the merge, you can downgrade eigen in homebrew to 3.3.7 with the below commands, then repeat `configure` and `build`:

```auto
brew unlink eigen
brew tap-new core/eigen
brew extract eigen --version 3.3.7 core/eigen
brew install core/eigen/eigen@3.3.7

```

---

<div class="post-metadata">

**Author:** ![JohannesBech](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@JohannesBech](https://community.mrtrix.org/u/JohannesBech)\
**Post date:** [September 8, 2021, 12:56pm UTC](https://community.mrtrix.org/t/mrtrix-build-error-macos-big-sur/5192/3 "2021-09-08T12:56:50Z")

</div>

Thanks a lot! This solved the problem!
