ANTs (Advanced Normalization Tools) Install
Get the latest ANTs code
You will need to install the ZLIB libraries:
sudo apt install zlib1g-dev
Obtain the newest version of ANTs by running the following:
mkdir -p ~/Documents/code/ants_source
cd ~/Documents/code/ants_source
git clone https://github.com/ANTsX/ANTs.git .
Run CMake/Make
Make the build directory.
The default install location is /opt/ANTs, which falls on your PATH. This is the easiest location to install. If you want to install somewhere else then specify the path in the CMAKE_INSTALL_PREFIX variable.
mkdir -p ~/bin/ants
cd ~/bin/ants
ccmake ~/Documents/code/ants_source
Hit ‘c’ to do an initial configuration. CMAKE will do some checking and then present options for review. Hit ‘c’ again to do another round of configuration. If there are no errors, you’re ready to generate the make files by pressing ‘g’.
Now you are back at the command line, it’s time to compile:
make -j
cd ~/bin/ants/ANTS-build
sudo make install
Post-install Configuration
You will need to edit your .bashrc or .zshrc file by adding the following lines:
export PATH=$PATH:/opt/ANTs/bin
Now check this worked correctly:
which antsRegistration