I installed Xcode and followed the steps online to install MRtrix3. Everything worked out pretty ok until the MRtrix3 Build section where the ./configure command on my bash shell gave me an error message announcing that no suitable compiler was found. How can I make this work so I can go on to build MRtrix3?
configure.log file:
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.14.5
>>
REPORT: OS X deployment target: 10.14
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.