Edit this page
Open and issue
Installing FSL¶
The easiest method is to download this python script. You will need to register. On the subsequent page you will download the fslinstaller.py
file.
Installing on Pop_OS!¶
You will first need to run the following steps prior to installing FSL.
Note
The following steps were originally written here .
Warning
make sure you run a backup prior to performing this hackā¦ just in case.
-
move your current OS information files into a temporary location:
sudo mv /etc/os-release /etc/os-release.pop && sudo mv /etc/lsb-release /etc/lsb-release.pop
-
write a new
os-release
file:sudo gedit /etc/os-release
copy the following into this file:
NAME="Ubuntu" VERSION="20.04 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
-
write a new lsb-release file:
sudo gedit /etc/lsb-release
copy the following into this file:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
-
now run the fslinstaller.py script in the below section and return here to Step 5 to return your OS information.
-
after running the FSL install steps, remove the files you wrote:
sudo rm /etc/os-release && sudo rm /etc/lsb-release
-
move the original files back:
sudo mv /etc/os-release.pop /etc/os-release && sudo mv /etc/lsb-release.pop /etc/lsb-release
Linux¶
Run the following in a linux terminal (the install will take awhile):
python /home/*[your_username]*/Downloads/fslinstaller.py
You will also need to install the package wxpython
:
pip install wxpython
If that does not work then run:
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
Potential libraries you may need¶
You may need to install some of the following libraries.
Multiple-image Network Graphics library (libmng)
sudo apt-get install libmng2
sudo apt-get install libmng-dev
PNG library - development (libpng-dev)
sudo apt-get install libpng-dev
Optimized BLAS (linear algebra) library (libopenblas-base)
sudo apt-get install libopenblas-base
export LD_LIBRARY_PATH=/usr/lib/openblas-base/
libmng.so.1 Error
You will need to create a symbolic link for the library dll libmng.so.1
:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmng.so.2 /usr/lib/x86_64-linux-gnu/libmng.so.1
Independent JPEG Group's JPEG runtime library (libjpeg62)
sudo apt-get install libjpeg62
PNG library - runtime (libpng12.deb)
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
&& sudo dpkg -i /tmp/libpng12.deb \
&& rm /tmp/libpng12.deb
GTK+ graphical user interface library (gtk2.0)
sudo apt-get install gtk2.0
Pulseaudio for other random libraries
sudo apt-get install pulseaudio
You may also receive an error No D-BUS daemon running
run the following:
sudo chown -R *[your username]*:admin ~/.dbus