Download the FSL installer (python script) from https://fsl.fmrib.ox.ac.uk/fsldownloads_registration.
Type following commands in a Python interpreter:
from fslinstaller import *
manifest = get_web_manifest(Settings.mirror)
import json
with open('~/manifest.json', 'w') as fp:
json.dump(manifest, fp)
Open the manifest.json file and look for the filenamename of the latest CentOS FSL version (ending in .tar.gz).
Append this filename to the string in Settings.mirror
and paste into your browser:
this downloads the required binaries.
# Install dependencies
sudo yum install expat-devel libmng libpng12
# Extract FSL binaries into desired folder (I chose `~/.local`)
cd ~/.local
tar -xzf ~/Downloads/fsl-<fsl_version)-<centos_version>.tar.gz
FSLDIR=`pwd`/fsl
. fsl/etc/fslconf/post_install.sh -f $FSLDIR
Add folowing lines to .bashrc
:
FSLDIR=$HOME/.local/fsl
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
. ${FSLDIR}/etc/fslconf/fsl.sh
the tilde (
) is vanishing from the previous ('/manifest.json) in both locations (code and error msg)