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