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

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

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 2007-07-03