Installing McXtrace on your system
- 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.
- Read the corresponding section below for details valid only for your platform
McXtrace Platform Support
Detailed installation instructions below
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 ):
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.
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
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.
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 https://svn.mccode.org/svn/McCode/trunk 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:
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