Commit c0f26a95 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

DOC: Overview of full/official FSL installations

parent 0d1cace5
# Official / full FSL installations
An official FSL installation is a self-contained directory installed on an end user's system, typically located at `/usr/local/fsl/`. The FSL installation directory is identified by the `$FSLDIR` environment variable. A [**miniconda**]( environment is used to create `$FSLDIR`, and install all FSL projects and their dependencies into `$FSLDIR`, which itself a conda environment<sup>*</sup>.
> <sup>*</sup> The [conda documentation]( recommends against installing packages into a base conda environment, therefore `$FSLDIR` is created as a child environment.
By default, the base miniconda environment is installed into `$FSLDIR/../.fslconda/` (i.e. `/usr/local/.fslconda`, if the default setting of `FSLDIR=/usr/local/fsl/` is used)<sup>*</sup>.
> <sup>*</sup> The only possible options for the base/child environment locations are either to have them in separate directories, or to have the child environment directory located within the base environment directory. The former option was chosen, as the latter option would require a system of links to be created from `$FSLDIR/*` into `$FSLDIR/<child-environment>/*`.
Because `$FSLDIR` is a conda environment into which all FSL projects and their dependencies are installed, `$FSLDIR/bin/` will contain executable files provided by both FSL, and by its dependencies. This can give rise to a problem whereby executables in `$FSLDIR/bin/` can mask other executables of the same name which are also installed in the user's environment, but come after `$FSLDIR/bin/` on the user's `$PATH` (e.g. `python`, `conda`, etc).
To work around this problem, and to isolate all of the FSL executables from the other executables installed into the same environment, the conda packages for all FSL projects use [`` and ``]( scripts to create "wrapper scripts" within `$FSLDIR/share/fsl/bin/`<sup>*</sup>. These wrapper scripts are created by the [`$FSLDIR/share/fsl/sbin/createFSLWrapper`]( script, which is installed as part of the [`fsl-base`](( package.
> <sup>*</sup> More details on FSL project conda recipes are outlined in [``](
Users can then add the `$FSLDIR/share/fsl/bin/` directory to their `$PATH`, to the effect that only FSL executables will be made available in their environment.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment