Downloading and Installing Marx
Marx is distributed in the form of a compressed tar file and must be compiled before it can be used. This process is fairly painless and is something that even those who have never compiled a C program before can do. It is written in ANSI-C (with a few POSIX extensions) and is intended to be portable across most 32 and 64 bit Unix operating systems, as well as MacOSX and CYGWIN.
First download the marx tar file from ftp://space.mit.edu/pub/cxc/marx/v5.0/ and copy it to a directory that has at least a couple of hundred megabytes of free disk space. Note that this directory and its contents will no longer be needed after marx has been installed.
Next uncompress and untar the file:
# gzip -d marx-dist-5.0.0.tar.gz # tar xf marx-dist-5.0.0.tar(Some versions of tar can also uncompress the file, permitting the above to be accomplished in one step). At this point the tar file is no longer needed so it may be removed:
# /bin/rm marx-dist-5.0.0.tarNow change to the newly created directory to start the build process:
# cd marx-dist-5.0.0The next step is to run the
At this point you need to think about where you want marx to be installed, and if you want the optional marxrsp program to also be created (marxrsp was written for calibration purposes--- it is not needed by most users). If you want marxrsp to be installed, then you will also need to have cfitsio compiled and installed as detailed in the INSTALL file. For simplicity, here it is assumed that marxrsp will not be installed.
Assume that you want marx installed in its own tree under
Now run the
# ./configure --prefix=/opt/marx/5.0.0If all has gone well, the last bit of output from the above command should resemble:
You are compiling MARX with the following compiler configuration: CC = gcc . . MARX parameter files will be installed in /opt/marx/5.0.0/share/marx/pfiles/. To continue the build process, run 'make'.If not, then you may not have the necessary tools installed to compile marx, or you have an unsupported system. If you are unable to resolve the problem on your own, the contact marx-help at space mit edu.
Assuming all has gone well, execute the
# make(If this step fails and you are unable to resolve the problem, then contact marx-help at space mit edu.)
The final step in the installation process is to actually install the
compiled executables. If you do not have write permission to the
installation-prefix directory (
# make installto complete the installation. As indicated above, the marx executable will be copied to
The parameter files are
NOT automatically loaded by marx unless the
|This page was last updated Jan 24, 2012 by John E. Davis. |
Technical questions should be addressed to marx-help at space mit edu.