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


Specifying non-standard options

Specifying non-standard options

To install in a different location than /usr/local, use the -prefix= option to configure in step 2. For example,

./configure -prefix=/home/joe

will install the McStas programs in /home/joe/bin/ and the library files needed by McStas in /home/joe/lib/mcstas/.

On 64-bits systems, you may have to use: ./configure -with-pic before installing PGPLOT with: make install-pgplot

To enable NeXus format in mcformat, you need the NeXus and HDF libraries, and have to use: ./configure -with-nexus

To specify a non standard C compiler (e.g. gcc-4.2 or icc that support OpenMP), you may use e.g.: ./configure -with-cc=gcc-4.2

To enable a non standard C compiler to be used with MPI, you may have to edit your mpicc shell script to set e.g.: CC="icc", or redefine the 'cc' to point to your prefered compiler, e.g.: ln -s /usr/bin/gcc-4.2 /usr/bin/cc

In case ./configure makes an incorrect guess, some environment variables can be set to override the defaults:

  • The CC environment variable may be set to the name of the C compiler to use (this must be an ANSI C compiler). This will also be used for the automatic compilation of McStas simulations in mcgui and mcrun.
  • CFLAGS may be set to any options needed by the compiler (eg. for optimization or ANSI C conformance). Also used by mcgui/mcrun.
  • PERL may be set to the path of the Perl interpreter to use.
To use these options, set the variables before running ./configure. Eg.

setenv PERL /pub/bin/perl5

./configure

It may be necessary to remove configure's cache of old choices first:

rm -f config.cache

If you experience any problems, or have some questions or ideas concerning McStas, please contact peter.willendup@risoe.dk or the McStas mailing list at neutron-mc@risoe.dk.

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