ERROR when running dwibiascorrect: Could not find ANTS program N4BiasFieldCorrection

You add ANTs to your path to your bash_profile the following way.

export ANTSPATH=/(yourpathtoants)/ANTs/bin
export PATH=${ANTSPATH}:$PATH