ITK Packages in Linux Distributions

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

5 Responses to ITK Packages in Linux Distributions

  1. Isn’t it enough to say that the same procedure hold for Debian and Ubuntu?

    • Matt McCormick says:

      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.

  2. Bradley Lowekamp says:

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

  3. weicheng shen says:

    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?

Questions or comments are always welcome!