LOCFIT


Installing the C version of LOCFIT on Unix systems

Locfit will be compiled as the four standard locfit libraries (liblocf, liblfev, libmut and libtube), plus libcvers (the command line interpreter) and a small front-end executable locfit.
  1. Download and save the LOCFIT 2.0 source archive.
  2. Unpack,
    gunzip locfit.tgz
    tar -xvf locfit.tar
    cd locfit
    
  3. If the readline library is available on your system (does
    ls /usr/lib/libreadline*
    
    produce any files?) you can enable readline by adding the line
    #define USE_READLINE
    
    at the top of src-d/main.c, and adding
    -lreadline
    
    to the LDFLAGS in the Makefile.
  4. If your X libraries are not in /usr/X11R6/lib, edit the XLDFLAGS line in the Makefile. LOCFIT can also be compiled with ASCII graphics in place of X.
  5. Compile the source code:
    make
    make install
    
    For the ASCII graphics version, use
    make locfit-nox
    make install
    
    The make install must be done as root, and installs the libraries, Locfit binary and header files to the /usr/local/ hierarchy. To check that all libraries are properly linked, use
    ldd /usr/local/bin/locfit
    
  6. If the compilation was successful, LOCFIT is ready to run. Type
    locfit
    
    To install the example datasets,
    locfit> run install.cmd
    locfit> exit