McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; Niels Bohr Institute DTU

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Share

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tutorial

Workshops/conferences

Developments
 Platforms

Links

Report bugs

SVN

McStas Ubuntu live-dvd


Configuration and installation

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


Last Modified: Friday, 03-Jun-2011 20:19:51 CEST
Search website freshmeat.net McStas site RSS feed mailinglist archive SVN repos McCode Trac