FSL 安装失败。Ubuntu 18.0.4

FSL 安装失败。Ubuntu 18.0.4
Installing FSL into /usr/local/fsl...
[###################                                                                                      ] 18 / 100 % -

ERROR occurred during installation!
    This command returned an error: /usr/local/fsl/bin/mamba env update -n base -f /tmp/tmppFZAPS/fsl-6.0.6.5_linux-64.yml

Removing failed installation directory /usr/local/fsl

FSL installation failed!

我尝试使用:

python fslinstaller.py
sudo python fslinstaller.py

我将用户改为 root 并重试:

python fslinstaller.py
sudo fslinstaller.py

什么都不起作用。我真的需要尽快解决这个问题,因为我想使用 FSL。

答案1

我自己还没有尝试过,但根据研究:

Debian/Ubuntu 用户应从 Neurodebian 网站安装 FSL -http://neuro.debian.net/pkgs/fsl-complete.html并阅读安装说明。从 fsl 5.0 开始,您需要做的就是将“./etc/fsl/5.0/fsl.sh”添加到 .profile 文件的末尾。下次登录时,您应该会发现 fsl 程序可用。

[注意:某些软件包依赖项具有非标准许可条款 - 请验证是否符合要求]

安装流程如下:

wget -O- http://neuro.debian.net/lists/bionic.us-ca.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
sudo apt-get update
sudo apt-get install fsl-complete

仅对于符合 DSFG 的软件,有权在任何条件下使用、修改、重新分发:

wget -O- http://neuro.debian.net/lists/bionic.us-ca.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
sudo apt-get update
sudo apt-get install fsl-complete

答案2

FSL 安装:

useradmin@DEP59365:~/fsl/bin$ python --version
Python 2.7.18
useradmin@DEP59365:~/fsl/bin$ cd .. 
useradmin@DEP59365:~/fsl$ cd ..
useradmin@DEP59365:~$ cd /media/useradmin/Disk2/FSL_installer/
useradmin@DEP59365:/media/useradmin/Disk2/FSL_installer$ sudo python2.7 fslinstaller.py 
FSL installer version: 3.9.0
Press CTRL+C at any time to cancel installation
Running the installer script as root user is discouraged! You should
run this script as a regular user - you will be asked for your administrator
password if required.
Installation log file: /tmp/fslinstaller_0b75Cx.log
Installing FSL implies agreement with the terms of the FSL license - if you
do not agree with these terms, you can cancel the installation by pressing
CTRL+C.
FSL 6.0.7.7 selected for installation
Where do you want to install FSL?
Press enter to install to the default location [/usr/local/fsl/]
FSL installation directory [/usr/local/fsl/]: 
Downloading FSL environment specification from https://fsl.fmrib.ox.ac.uk/fsldow
nloads/fslconda/releases/fsl-6.0.7.7_linux-64.yml...
Installing FSL in /usr/local/fsl
Downloading miniconda from https://github.com/conda-
forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-Linux-
x86_64.sh...
[#############################################################] 80.3 / 80.3 MB \
Installing miniconda at /usr/local/fsl...
[################################################################] 100 / 100 % |
Installing FSL into /usr/local/fsl...
[################################################################] 100 / 100 % -

**FSL successfully installed**

useradmin@DEP59365:/media/useradmin/Disk2/FSL_installer$ echo $FSLDIR
/usr/local/fsl
useradmin@DEP59365:/media/useradmin/Disk2/FSL_installer$ flirt -version
FLIRT version 6.0
useradmin@DEP59365:/media/useradmin/Disk2/FSL_installer$ which imcp
/usr/local/fsl/share/fsl/bin/imcp

答案3

除上述内容外,您还需要更改这些文件:

.bashrc
要添加以下几行:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/useradmin/MonteCarlo/hdf5-install/lib/
export FSLDIR=/home/useradmin/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
export PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH

。轮廓
以下几行:

# FSL Setup
FSLDIR=/home/useradmin/fsl
PATH=${FSLDIR}/share/fsl/bin:${PATH}
export FSLDIR PATH
. ${FSLDIR}/etc/fslconf/fsl.sh

并且所有.csh文件的以下几行都被注释掉并且有一个默认位置添加以下内容:

setenv FSLDIR /home/useradmin/fsl
source $FSLDIR/etc/fslconf/fsl.csh

然后重启电脑,打开终端检查。一切正常。FSL 的安装已完成。

相关内容