I installed the ANTs from the https://github.com/ANTsX/ANTs ‘s latest pre-compiled binaries https://github.com/ANTsX/ANTs/releases v2.5.2 Froggattella https://github.com/ANTsX/ANTs/releases/tag/v2.5.2
In the Assets, there are multiple versions you could choose from based on your OS version. You could figure out your OS with terminal command uname -m
my MacOs is arm64,
so i picked the ants-2.5.2-macos-12-X64-clang.zip
ants-2.5.2-macos-14-ARM64-clang.zip
if your output is x64 then pick ants-2.5.2-macos-12-X64-clang.zip
now, unzip ants-2.5.2-macos-12-…-clang.zip
Move the Extracted Files to a Suitable Location:
sudo mv ants-2.5.2 /opt/ants
open a new terminal, at the home directory:
nano ~/.bashrc
add the following lines:
export ANTSPATH=/opt/ants/bin
export PATH=${ANTSPATH}:$PATH
Save and close the file, then reload it:
source ~/.bashrc
Since we dl the ANTs from browser, your terminal might have issue trusting it