Configuration and installation

McStas uses autoconf to detect the system configuration and creates the proper Makefiles needed for compilation. On Unix-like systems, you should be able to compile and/or install McStas using the following steps:
  1. Unpack the sources to somewhere convenient and change to the source directory:
    gunzip -c <package>.tar.gz | tar xf -
    cd mcstas-1.11/
  2. Configure McStas:
    ./configure
  3. Build McStas (only in case of the mcstas-1.11-src.tar.gz package):
    make
  4. Optionally build/install PGPLOT (as superuser - build dependencies are pdl, g77, libx11-dev, xserver-xorg-dev, libxt-dev on Ubuntu):
    make install-pgplot && ./configure
  5. Optionally download/install Scilab (as superuser - only on Linux with Intel hardware):
    make install-scilab && ./configure
  6. Install McStas (as superuser):
    make install

The installation of McStas in step 6 by default installs in the /usr/local/ directory, which on most systems requires superuser (root) privileges.



root 2007-07-03