UNIX Installation Instructions for CMPR
|
These instructions are not up to date, but might be of
value for someone interested in porting EXPGUI. Please see
the CMPR Trac site for information on downloading and installing CMPR.
Here is an outline of the steps needed to install
CMPR
on your UNIX computer.
Report problems to Brian Toby.
To use CMPR on another type of computer, you will likely have to edit the file
src/Makefile and then use the command make make.
Note that for the Mac and Linux, binary files are available from
svn repositories:
https://subversion.xor.aps.anl.gov/CMPR/exe/osx_i86/,
https://subversion.xor.aps.anl.gov/CMPR/exe/osxG4/, and
https://subversion.xor.aps.anl.gov/CMPR/exe/linux/ or are included in
distributions at http://11bm.xor.aps.anl.gov/downloads.
Common Problems
- CMPR reports an error: "Error -- Unable to load the BLT package" and exits
after the OK button is pressed.
You do not have BLT installed in the right place so that it
can be loaded with a "package require" command.
Click here for instructions on installing
the Tcl/Tk and BLT packages.
- I get an error message saying: invalid command name "Blt_ZoomStack".
(In CMPR version 1.4 and later, you will get a message saying "Error in BLT
support routines: invalid command name Blt_ZoomStack")
The routines in BLT's pkgIndex.tcl file do not reference the routines
in the bltGraph.tcl file. This is a bug that I think finally has been
fixed in BLT.
- During the build, I get an error message saying: g77 - unknown command.
To build the binary files, you need a FORTRAN compiler. The makefiles assume
this g77 on Linux and f77 on an SGI. If you are using a different compiler,
you will need to spend some time working on the makefile
(please send it to me when it works so that I can share it).
If you do not have a compiler installed,
you will need to get one, or else use the precompiled binaries (above).
Acknowledgements
Praise to John Ousterhout for creating Tcl/Tk and to Przemek
Klosowski for convincing me to learn it.
Neither the author nor the U.S. Government makes any warranty, expressed
or implied, or assumes any liability or responsibility for the use of this
information or the software described here. Brand names cited here are used
for identification purposes and do not constitute an endorsement by NIST.
CMPR was written by Brian
H. Toby when at the NIST Center for Neutron Research.
CMPR is not subject to copyright.
Small FORTRAN
programs used in CMPR contain routines borrowed from lots of sources:
The reflection generation code traces back to the NIST AIDS*83 (C. Hubbard,
J. Stalick, A. Mighell & others), space group extinctions from NRC
symmetry codes (A. C. Larson) and peak fitting uses GPLSFTA (D. Cox, W.
Hamilton, L. Finger & many others).
$Revision: 400 $ $Date: 2010-03-28 09:01:23 -0500 (Sun, 28 Mar 2010) $