Slicer3:Debian

From Slicer Wiki
Jump to: navigation, search
Home < Slicer3:Debian

Intro

A Debian package for slicer has been created to make it easier to install "3D Slicer" on Debian machines. This means users can simply do:

sudo apt-get install slicer

and the slicer3 command will be available in their path and system menus. All slicer executables and libraries will be installed along with dependencies.

slicer3

Debian "squeeze"

Debian "squeeze" contains a "3D Slicer 3.4" package.

Debian "wheezy"

The next major Debian release "wheezy" will contain all tools to compile a local "3D Slicer 4.x" version.

# download the 'supported' Qt version [1]
wget http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz
mkdir qt-everywhere-opensource-build-4.7.4
tar xvfz qt-everywhere-opensource-src-4.7.4.tar.gz
cd qt-everywhere-opensource-src-4.7.4
./configure -prefix ../qt-everywhere-opensource-build-4.7.4 -debug-and-release -opensource -confirm-license -no-qt3support -webkit -nomake examples -nomake demos
make -j8
make install
sudo aptitude update
sudo aptitude install subversion git gcc g++ make cmake-curses-gui libqt4-dev
svn co http://svn.slicer.org/Slicer4/trunk Slicer4
mkdir Slicer4-SuperBuild-Debug
cd Slicer4-SuperBuild-Debug
#cmake ../Slicer4
cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=~/qt-everywhere-opensource-build-4.7.4/bin/qmake ../Slicer4
make -j5
# runtime dependency:
sudo aptitude install python-tk

Cloud computing

The EBS AMI ami-6ca05805 contains a ready to use 3D Slicer 3.4 installation. The image can be started as a t1.micro instance (~ $0.02 per hour).

Example session:

AMI=ami-6ca05805
ec2-describe-images $AMI
ec2-run-instances -t t1.micro $AMI -n1 -k mykey
ec2-describe-instances
host=ec2-174-129-170-61.compute-1.amazonaws.com
ssh -i id_rsa-mykey -X ubuntu@${host}

Use Slicer's command line tools

/usr/lib/Slicer3/Plugins/AffineRegistration --help

or start Slicer's GUI

slicer3

Dependencies

Media:slicer_rdep_squeeze.png

Ubuntu

The Ubuntu distribution will also contain a slicer package in their universe repository [2]. This package is probably based on the slicer package taken from Debian "unstable".

"The MOTU team cares for the packages in universe and multiverse (which are comprised mostly of packages from the Debian archive) on a best-effort basis, as there are a large number of packages relative to the resources of the team. Therefore, a vast majority of these packages are used unchanged from Debian, rebuilt in an Ubuntu build environment, and do not receive personal attention from an Ubuntu developer." [3]

Thanks!

These packages were the result of a lot of work by Dominique Belhachemi.