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:
- Unpack the sources to somewhere convenient and change to the
source directory:
gunzip -c <package>.tar.gz | tar xf -
cd mcstas-1.10/
- Configure McStas:
./configure
- Build McStas (only in case of the
mcstas-1.10-src.tar.gz
package):
make
- Optionally build/install PGPLOT (as superuser - build
dependencies are pdl, g77, libx11-dev, xserver-xorg-dev, libxt-dev
on Ubuntu):
make install-pgplot && ./configure
- Optionally download/install Scilab (as superuser - only on Linux
with Intel hardware):
make install-scilab && ./configure
- 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.
Peter Willendrup
2006-12-08