ERROR: no suitable compiler found!

I got this error while installing MRtrix on Mac OS!

REPORT: 
MRtrix build type requested: release version

REPORT: WARNING: Anaconda removed from PATH to avoid conflicts

REPORT: Detecting OS: darwin
EXEC <<
CMD: sw_vers -productVersion
EXIT: 0
STDOUT:
10.15.1
>>


REPORT: OS X deployment target: 10.15

REPORT: Looking for compiler [x86_64-apple-darwin13.4.0-clang++]:
EXEC <<
CMD: x86_64-apple-darwin13.4.0-clang++ --version
error invoking command "x86_64-apple-darwin13.4.0-clang++": No such file or directory: 'x86_64-apple-darwin13.4.0-clang++'
>>


REPORT: 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 all the suggestions + export CXX=/usr/bin/g+±9 which is my installed g++, any help would be appreciated!
Thanks

Ok, it looks like you’ve got anaconda installed, and that’s the likely problem. We’ve removed it from the path, since it’s actually really difficult to use anaconda for this, so it’s best avoided. But in your case, you’ve probably still got the CXX and/or LD variables set to point to the anaconda versions – which are no longer in the path…

To get this working, you’ll need to use the XCode compiler. Assuming you have it installed, try unsetting the variables I mentioned before issuing ./configure:

unset CXX
unset LD
./configure

Hopefully that’ll fix it…

On that note, we are planning on providing precompiled versions of MRtrix3 for installation via anaconda. Hopefully within the next few weeks…