McStas 2.2a or later on Linux

In principle any Linux distribution should be able to run McStas, but we specifically support Debian (.deb) and RedHat (.rpm) package based distributions.

If your system supports neither of these package systems (or is another Unix variant than Linux, such as e.g. FreeBSD), please refer to this page: Unix (src code) installation.

Debian class systems

McStas provides a package repository for use with Debian-based distributions, such as Debian, Ubuntu and Mint Linux. To allow automatic update of your mcstas, mcstas-components and tools when new revisions are relased, follow the below instruction.

Important: If you want to keep your McStas 1.x alongside McStas 2.2a or later, please use our migration script BEFORE installing McStas 2.2a or later. If you want to keep your McStas 2.0 alongside McStas 2.2a or later, please use our migration script BEFORE installing McStas 2.2a or later.

On Debian class systems (including Ubuntu, mint etc.):

cd /etc/apt/sources.list.d
sudo wget http://packages.mccode.org/debian/mccode.list
sudo apt-get update

After following these steps your package manager should now be aware of mcstas

mcstas@debian:~$ apt-cache search mcstas
mcstas-2.2a - mcstas built using CMake
mcstas-comps-2.2a - mcstas-comps built using CMake
mcstas-suite-perl - A metapackage for McStas + perl tools
mcstas-suite-python - A metapackage for McStas + python tools
mcstas-tools-2.2a - legacy-tools built using CMake
mcstas-tools-python-mcplot-chaco-2.2a - python-tools-mcplot built using CMake
mcstas-tools-python-mcplot-matplotlib-2.2a - python-tools-mcplot built using CMake
mcstas-tools-python-mcrun-2.2a - python-tools-mcrun built using CMake
mcstas-manuals-2.2a - mcstastex built using CMake
mcstas-tools-python-mcdisplay-2.2a - python-tools-mcdisplay built using CMake
mcstas-tools-python-mcdisplay-matplotlib-2.2a - python-tools-mcdisplay built using CMake
mcstas-tools-python-mcdisplay-r-2.2a - python-tools-mcdisplay built using CMake
mcstas-tools-python-mcdisplay-vtk-2.2a - python-tools-mcdisplay built using CMake

The new meta-packages mcstas-suite-perl and mcstas-suite-python allows you to install mcstas with one or both sets of tools (mcrun/mcplot etc.) by simple apt-get commands like

sudo apt-get install mcstas-suite

Please report any trouble with the repository to mcstas-users@mcstas.org.

RedHat class systems

McStas provides a package repository for use with RedHat-based distributions, such as RedHat, Fedora, CentOS and Scientific Linux. To allow automatic update of your mcstas, mcstas-components and tools when new revisions are relased, follow the below instruction.

Important: If you want to keep your McStas 1.x alongside McStas 2.2a or later, please use our migration script BEFORE installing McStas 2.2a or later. If you want to keep your McStas 2.0 alongside McStas 2.2a or later, please use our migration script BEFORE installing McStas 2.2a or later.

On RedHat class systems (including Scientific Linux, CentOS etc.):

cd /etc/yum.repos.d
sudo wget http://packages.mccode.org/rpm/mccode.repo
sudo yum update

On some RPM-oriented systems like RHEL, CentOS or Scientific Linux, you may also need to install the EPEL extensions to resolve some dependencies. See this webpage for further instructions.

After following these steps your package manager should now be aware of mcstas

mcstas@redhat~# yum search mcstas
Loaded plugins: security
===================================== N/S Matched: mcstas =====================================
mcstas-2.2a.x86_64 : mcstas built using CMake
mcstas-comps-2.2a.x86_64 : mcstas-comps built using CMake
mcstas-manuals-2.2a.x86_64 : mcstastex built using CMake
mcstas-suite-perl.x86_64< : A metapackage for McStas + perl tools
mcstas-suite-python.x86_64< : A metapackage for McStas + python tools
mcstas-tools-2.2a.x86_64 : legacy-tools built using CMake
mcstas-tools-python-mcdisplay-2.2a.x86_64 : python-tools-mcdisplay built using CMake
mcstas-tools-python-mcdisplay-matplotlib-2.2a.x86_64 : python-tools-mcdisplay built using CMake
mcstas-tools-python-mcdisplay-r-2.2a.x86_64 : python-tools-mcdisplay built using CMake
mcstas-tools-python-mcdisplay-vtk-2.2a.x86_64 : python-tools-mcdisplay built using CMake
mcstas-tools-python-mcplot-chaco-2.2a.x86_64 : python-tools-mcplot built using CMake
mcstas-tools-python-mcplot-matplotlib-2.2a.x86_64 : python-tools-mcplot built using CMake
mcstas-tools-python-mcrun-2.2a.x86_64 : python-tools-mcrun built using CMake
mcstas-tools-svn.x86_64 : legacy-tools built using CMake
  Name and summary matches only, use "search all" for everything

The new meta-packages mcstas-suite-perl and mcstas-suite-python allows you to install mcstas with one or both sets of tools (mcrun/mcplot etc.) by simple yum commands like

sudo yum install mcstas-suite

Please report any trouble with the repository to mcstas-users@mcstas.org.

Other Linux/Unix class systems

In case your Unix is not Debian or RedHat like, you should still be able to build either from the source tarball or directly from SVN - see Unix (src code) installation page.

The distribution packages for McStas may be downloaded via http://downloads.mcstas.org

Please report any trouble in using the build-scripts to mcstas-users@mcstas.org.


Last modified: Thu Apr 7 15:10:51 CEST 2016