Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
howff authored Sep 9, 2024
1 parent c887f75 commit e0ad8bb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions software/FSL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,32 @@ $ docker build --tag fsl:6.0.5 --file fsl605.Dockerfile .
```


### Manual installation

See https://fsl.fmrib.ox.ac.uk/fsl/docs/#/install/index?id=information-for-advanced-users
and https://fsl.fmrib.ox.ac.uk/fsl/docs/#/install/linux

Download installer from `https://git.fmrib.ox.ac.uk/fsl/conda/installer/-/raw/main/fsl/installer/fslinstaller.py?ref_type=heads&inline=false`

Edit installer to better handle installing into a directory which already exists:
```
In overwrite_destdir
return # XXX added
# generate a unique name for the old
In check_need_admin
return False # XXX added
return not os.access(dirname, os.W_OK | os.X_OK)
```

Edit installer to call miniconda with the `-f` option if directory already exists:
```
cmd = 'bash miniconda.sh -f -b -p {}'.format(ctx.basedir)
```

Run it like this:
```
python3 ./fslinstaller.py --skip_registration --no_self_update -d /usr/local/fsl
[--no_env] if you don't want it to edit your bashrc/profile scripts
```

It modifies `~/.profile` and `~/Documents/MATLAB/startup.m`

0 comments on commit e0ad8bb

Please sign in to comment.