MxInstall

From McXtraceWiki

Jump to: navigation, search

Installation instructions

This procedure works on linux-class systems and possibly others. It is not guaranteed to work on all possible configurations. If you experience problems please see the TroubleShooting-page. Iif that also fails to solve your problem, please don't hesitate to write to the mailing list, or contact one of the project team People.

Prerequisites:

  • GNU make
  • GNU autoconf
  • subversion
  • c-compiler
  • perl

First get the code onto your system: Go to the driectory where you'd like build your distribution and issue

svn checkout https://svn.mccode.org/svn/McCode/tags/mcxtrace_beta .

which will checkout the current McXtrace/McStas code-tree to your working directory.

Secondly, setup the configuration script by issuing

autoconf -o configure configure.in

To check your system for prerequisites and configure the build process to suit your system do:

./configure --enable-mcxtrace

If you'd like to tailor the configuration process, f.i. if you want to install to a directory different from /usr/local/lib/mcxtrace, see

./configure --help 

for possible options.

Now you're ready to build and install McXtrace. This is done using

make
make install

The 1st command builds the executable files, the 2nd installs them along with all existing mcxtrace library components into the location chosen by "configure".

The procedure needs streamlining and will be so shortly, as soon as the development team are physically able to.

That's it - you should be able run mcxtrace. Happy Simulating!

Note that you do need to set the environment variable MCSTAS to /usr/local/lib/mcxtrace (or to whatever other location you installed to) This is a remnant of the McXtrace ancestry being McStas. This is to be changed shortly. To set the variable (in a bash style shell) do:

export MCSTAS=/usr/local/lib/mcxtrace

or in a csh style shell;

setenv MCSTAS=/usr/local/lib/mcxtrace


For reference

The following executables are installed:

  • mcxtrace
  • mxrun
  • mxdoc
  • mxplot
  • mxformat
  • mxgui
  • mxdaemon
  • mxconvert
  • mxdisplay
  • mxformatgui
  • mxresplot

Please note that as this is an early alpha version, some (or all) of these scripts will report to you that they are part of the McStas neutron simulation package. If you find any bugs please take a moment to report it using the bug-tracking system on trac.mccode.org (Click the "New Ticket" tag). Please be patient while we fix bugs as we/you find them.

Personal tools