McXtrace logo

McXtrace - An X-ray ray-trace simulation package

ESRF; SAXSLAB Niels Bohr Institute DTU Physics


Project Status
 Project Partners
 Project People

 Mac OSX Installation
 Windows Installation

Mailing List



Minutes of Meetings

McXtrace Art

About McXtrace





Installing McXtrace on your system

  1. Go to the download area and download the file appropriate for your system. Se #McXtrace Platform Support below for details on what file to get.
  2. Read the corresponding section below for details valid only for your platform
  3. Simulate!

McXtrace Platform Support

Detailed installation instructions below

Mac OSX 10.8 Moutain Lion
Progress report on various platforms
Platform Status Recommended package Notes
#General Unix working SRC[1]
#Ubuntu 12.04 LTS Precise Pangolin Lynx (64 bit) working SRC[1]
#Windows XP workingEXE [1]
Windows 7 (64 bit)workingEXE[1]
Windows 8 (64 bit)workingEXE[1]
#FreeBSD 9.1 in testing SRC[1] installation through ports is planned

General Unix

Unpack the tarball, move into the build directory (e.g. cd mcxtrace-1.1rc1b-src-64, and do the following to install the mcxtrace kernel in its default location ( /usr/local ):

cmake .
make install;

If you get error messages complaining about permissions you probably don't have write permissions to the default installation directory, in which case you should do

sudo make install

instead or specify a different install location during the cmake step, e.g. -DCMAKE_INSTALL_PREFIX=/tmp. Please note that the default behaviour is to put the executable files in CMAKE_INSTALL_PREFIX/bin/. Thus you should make sure this directory is in your PATH-variable.

Ubuntu 11.10

Unfortunately the perl-pgplot which is shipped with ubuntu 11.10 has problems. To remedy this and get plotting working you need to install some extra packages and rebuild perl-pgplot from source. First do

apt-get install gfortran libextutils-f77-perl libx11-dev

Next get and install perl PGPLOT from CPAN by:

tar xzvf PGPLOT-2.21.tar.gz
cd PGPLOT-2.21/ && perl Makefile.PL && make && sudo make install

Ubuntu 10.04 LTS

To get McXtrace running on all cylinders including visualization/visual ray tracing etc. you should first install the following standard binary packages.

apt-get install libx11-dev libxt-dev gfortran perl perl-Tk gcc libc6-dev libg2c0 pdl pgplot libpgplot-perl

Windows XP

Download the executable installer file to a location convenient for you, navigate to where you put the file and double click on it to run it. This triggers an install of McXtrace and optionally of Active State Perl, Dev-Cpp and Cortona VRML plugin for internet explorer. The safest bet is to install things in their default locations. McXtrace does not handle spaces in directory names. Lastly log out of your system and log back in again to trigger an update of environment variables.

FreeBSD 8.2

There is a problem with the current port of PDL (/usr/ports/p5-PDL) preventing PDL from being installed. This effect of this is that mxplot is currently broken. The McXTrace kernel is fine, and data are output as they should. This only blocks plotting with mxplot through the pgplot backend, until the port can be fixed. Upstream bugfixes exist so it shouldn't be too long.

Direct Install from Development Tree

If you prefer to do so you may grab a fresh version of mcxtrace directly from the development tree. Please be aware that this is not guaranteed to work at all times, as we may be in the middle of a development cycle. To do so - you'd use subversion to get the latest version of the code into your working directory:

svn checkout build

This will put the source code relevant to mcxtrace in a newly created directory (if it didn't exist) build Enter this directory and run the following commands to generate a configure script, configure the build, build and install mcxtrace:

./configure --enable-mcxtrace
make install

Note that this assumes your user has writing permissions to the default installation directory /usr/local/lib. If not - you should run this command as root (through sudo) or add an option --prefix=[TARGET_DIR] to the configure command. Substitute [TARGET_DIR] with the name of the directory you are installing to.

Last Modified: Tuesday, 16-Aug-2016 14:59:04 CEST
Search website mailinglist archive SVN repos McCode Trac