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:

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 2010-07-15