Centos 5.x standard installation

I prefer to install from source code, because this should always work once you've got it started. I also prefer to use the system libraries (because that should be the right thing to do) rather than tacking on alternative versions of software which can complicate installation and the operation of other programs. I've not yet had serious problems with this methodology. HOWEVER analysis runs faster and windows flicker less with more recent Tcl/Tk versions so consider installing Tcl/Tk and Python from source.

Make sure you have the necessary software and development libraries installed (you'll have chosen to install the compilers already).

 yum install python-devel freeglut-devel tcl-devel tk-devel tkinter libX11-devel libXext_devel python-numpy python-elementtree

Then for analysis 2.1.x the installation script requires the following responses. Shame it doesn't guess where elementtree is - it must be pretty standard in relation to the python libs? The first question depends on whether you are the using 32 or 64 bit version of the OS.

# cd /usr/local

# tar xzvf <path>/analysis<version>.tgz

# cd ccpnmr

# python installCode.py

Messages will be logged in "log_Analysis_3.txt"

Assuming your platform is linux

Are you using 64 bit libraries? (answer n unless you know otherwise) (y or n))? y

Found X11 include match: /usr/include/X11/Xlib.h

Found X11 lib match: /usr/lib64/libX11.so.6.2.0

Need to know where X11 directory is, in order to compile Analysis

This directory should contain [include/*/X11/Xlib.h, lib*/*/libX11.*], and as seen, /usr does

Guess X11 dir = "/usr", is this correct (y or n)? y

CCPN Tcl gzipped tar file not found, assuming using existing Tcl

Found Tcl include match: /usr/include/tcl.h

Found Tcl lib match: /usr/lib64/tclConfig.sh

Need to know where Tcl directory is, in order to compile Analysis

This directory should contain [include/*/tcl.h, lib*/*/tclConfig.sh], and as seen, /usr does

Guess Tcl dir = "/usr", is this correct (y or n)? y

Guess Tcl version = 8.4 (by looking), is this ok (y or n) (reply y unless sure otherwise)? y

CCPN Tk gzipped tar file not found, assuming using existing Tk

Found Tk include match: /usr/include/tk.h

Found Tk lib match: /usr/lib64/tkConfig.sh

Need to know where Tk directory is, in order to compile Analysis

This directory should contain [include/*/tk.h, lib*/*/tkConfig.sh], and as seen, /usr does

Guess Tk dir = "/usr", is this correct (y or n)? y

Assuming Tk version is also 8.4

CCPN Python gzipped tar file not found, assuming using existing Python

Found Python include match: /usr/include/python2.4

Found Python lib match: /usr/lib64/python2.4

Need to know where Python directory is, in order to compile Analysis

This directory should contain [include/*/python2.*, lib*/*/python2.*], and as seen, /usr does

Guess Python dir = "/usr", is this correct (y or n)? y

Guess Python version = 2.4 (by looking), is this ok (y or n) (reply y unless sure otherwise)? y

CCPN ElementTree gzipped tar file not found, assuming using existing ElementTree

Need to know where ElementTree directory is, in order to compile Analysis

This directory should contain [elementtree/]

Where is the ElementTree dir? /usr/lib/python2.4/site-packages

Found ElementTree elementtree match: /usr/lib/python2.4/site-packages

Do you want OpenGL used in Analysis (y or n) (n means only get Tk)? y

CCPN Mesa gzipped tar files not found, assuming using existing Mesa or alternative OpenGL

Found OpenGL include match: /usr/include/GL/gl.h

Found OpenGL lib match: /usr/lib64/libGL.so.1

Need to know where OpenGL directory is, in order to compile Analysis

This directory should contain [include/*/GL/gl.h, lib*/*/libGL.*], and as seen, /usr does

Guess OpenGL dir = "/usr", is this correct (y or n)? y

Found glut include match: /usr/include/GL/glut.h

Found glut lib match: /usr/lib64/libGL.so.1

Compile and install Analysis code (y or n)? y

You can create environment file from scratch (this does not copy it from environment_default.txt)

If you have already created it and edited it by hand you probably do not want to create it again here.

Create environment file (y or n) (answer y unless you know otherwise)? y

Does your glut need explicit initialisation (OSX and freeglut probably y, ordinary glut probably n) (y or n)? y

Use -fPIC compiler flag (y or n) (if gcc compiler y, otherwise n; answer y unless you know otherwise)? y

...lots of compiler messages.....

Do you want to create a bin directory (answer y unless you know otherwise) (y or n)? y

Creating the bin directory

Install latest updates (from server) (y or n)? y

Getting latest updates from server

...updates downloaded...

Run Analysis (as test) (y or n)? y

...various messages...main analysis control bar appears...

>>> Finished installation script

Your executables are in /usr/local/ccpnmr/bin so you will want to make sure that this is on your path.