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
Hi, I'm on Fedora 29 attempting to install FSL6.0.1 for Centos7 and when attempting to use the above in a python2 (2.7.15) interpreter, I get
with open('~/manifest.json
, 'w') as fp: File "<stdin>", line 1 with open('~/manifest.json
, 'w') as fp:^
SyntaxError: invalid syntax
I assume this is an issue related to which version of python we're running. Could you kindly recommend a fix?