ITK Packages in Linux Distributions

April 28, 2016

Last week, Ubuntu Linux 16.04 (Xenial Xerus) was released. This long-term support distribution includes packages for the recently released ITK 4.9.0.

This post describes how to install ITK packages in Ubuntu and other excellent Linux distributions.

Arch

Archlinux-vert-dark.svg

The Arch ITK package is maintained by Christopher R. Mullins. To install ITK on Arch Linux:

sudo pacman -S --needed base-devel
mkdir -p ~/build-repos
cd ~/build-repos
git clone https://aur.archlinux.org/gdcm.git
cd gdcm
makepkg -sri
cd ..
git clone https://aur.archlinux.org/castxml-git.git
cd castxml-git
makepkg -sri
cd ..
sudo pacman -S swig python
git clone https://aur.archlinux.org/insight-toolkit.git
cd insight-toolkit
# Optionally edit PKGBUILD and set _usepython=true to add Python wrapping
makepkg -sri

Debian

Debian-OpenLogo.svg

The Debian ITK package is maintained by Steve M. Robbins and Gert Wollny. To install ITK on Debian GNU/Linux:

# Install ITK Python wrapping
sudo apt-get install insighttoolkit4-python

# Install examples from the ITK Software Guide
sudo apt-get install insighttoolkit4-examples

# Install ITK C++ headers
sudo apt-get install libinsighttoolkit4-dev

# Install ITK library debugging symbols
sudo apt-get install libinsighttoolkit4-dbg

Fedora

Fedora_logo_and_wordmark.svg

The Fedora ITK package is maintained by Mario Ceresa. To install ITK on Fedora:

# Install examples from the ITK Software Guide
sudo dnf install InsightToolkit-examples

# Install ITK C++ headers
sudo dnf install InsightToolkit-devel

# Install C++ headers for ITK / VTK bridge
sudo dnf install InsightToolkit-vtk-devel

# Install the ITK Software Guide PDF's
sudo dnf install InsightToolkit-doc

Ubuntu

ubuntu-16.04_logo-300x200

The Ubuntu ITK package is maintained by Gianfranco Costamagna and Gert Wollny. To install ITK on Ubuntu Linux:

# Install ITK Python wrapping
sudo apt-get install insighttoolkit4-python

# Install examples from the ITK Software Guide
sudo apt-get install insighttoolkit4-examples

# Install ITK C++ headers
sudo apt-get install libinsighttoolkit4-dev

# Install ITK library debugging symbols
sudo apt-get install libinsighttoolkit4-dbg
Tags:

5 comments to ITK Packages in Linux Distributions

    1. The Ubuntu packages are based off the Debian packages, but sometimes they are not the same. Both Ubuntu and Debian also have different packages available for each distribution version. See the links next to each distribution for version coverage.

  1. The Ubuntu also has these packages for the armhf architecture. This means there are ITK binaries for the Raspberry Pi 2 and 3 available.

  2. When I attempted to install the ITK on my ubuntu 14.04 using the command “sudo apt-get install insighttoolkit4-python”, an error message showed up:
    E: Unable to locate package insighttoolkit4-python
    Would you share with us what might went wrong? How to fix it?

    1. Unfortunately, Ubuntu 16.04 is required. See the distributions where insighttoolkit4-python is available here:

      http://packages.ubuntu.com/search?keywords=insighttoolkit4-python

      We have started to build ITK Python wheels. You can use this with Ubuntu 14.04. Try:

      sudo apt-get install python wget
      wget https://bootstrap.pypa.io/get-pip.py
      sudo python ./get-pip.py
      sudo python -m pip install -f https://github.com/InsightSoftwareConsortium/ITKPythonPackage/releases/tag/nightly itk

Leave a Reply