D. Flemming Hansen >> Programs >> FuDA >> Installation

Installation


The FuDA program ONLY runs on unix-based platforms, i.e., Linux, Mac OS X,.. FuDA is not, and will not be, compiled for Microsoft (TM) Windows systems.

FuDA requires python to be installed. If you do not already have python installed on your system, you can download it free of charge from www.python.org

0. Download the archive file that match your system. Downloads can be found on the front page.
1. Unpack the tar archive.
   []$ tar -zxvpf fuda_xx_yy.tar.gz
2. Install the Numerical Python Library, if you do not already have it installed. Note that under MAC OS X (after 10.5) all the numerical libraries are already installed.
2.a.: Unpack Numeric-24.0b2.tar.gz (logged in as root). Or download a newer version
   []# tar -zxvpf Numeric-24.0b2.tar.gz
2.b.: Go into the Numeric-24.0b2 directory
   []# python setup.py install
3. You must have the FuDA library files in a common directory pointed to by the environment PYTHONPATH. For example you can do as follows:
   3.a. : Create a directory called "python_modules" in your home directory
   3.b. : Copy the files, dataIOmodule.so, fudaIO.py, fudalibmodule.so, fuda.py, FudaFunctions.py into the "python_modules" directory
   3.c : In your .cshrc add a line to define PYTHONPATH
     setenv PYTHONPATH "${HOME}/python_modules"
   3.c : In your .bashrc add a line to define PYTHONPATH
     export PYTHONPATH="${HOME}/python_modules"
   Note: Both the 32bit and 64bit modules are provided when you download the 64Bit Linux version. Consequently, copy the dataIOmodule.so, ..., FudaFunctions.py files from either the Modules_Linux_64 or the Modules_Linux_32 directory.
4. Copy the main script file "nmrPipeFit.py" into a directory that is included in your PATH, e.g., ${HOME}/bin.
5. Your should now be ready to go! Type:
   []$ rehash
   []$ nmrPipeFit.py
You should now see something like

Wrong number of parameters
            PROGRAM ABORTED


USAGE: nmrPipeFit.py [inputfile] [output_directory]
The format of the inputfile can be seen elsewhere
...
If you see something like

fudaIO.py:7: RuntimeWarning: Python C API version mismatch for module dataIO: This Python has API version 1011, module dataIO has version 1012.

then it is generally not a problem, just means that your version of python is different from the version by which the libraries are compiled.