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 or ./configure -with-nexus -with-cc=gcc-4.2
  3. Optionally build/install PGPLOT (as superuser - build dependencies are pdl, g77, libx11-dev, xserver-xorg-dev, libxt-dev on Ubuntu):
    make install-pgplot && ./configure
  4. Build McStas (only in case of the mcstas-1.11-src.tar.gz package):
    make
  5. Install McStas (as superuser):
    make install

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



root 2011-06-03