- Download and save the
locfit source archive.
- Unpack,
gunzip locfit.tgz
tar -xvf locfit.tar
The Locfit source files are extracted to the locfit subdirectory.
cd to that directory.
- 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.
-
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.
- Compile the source code:
make
For the ASCII graphics version, use
make locfit-nox
-
If the compilation was successful, Locfit is ready to run. Type
locfit
To install the example datasets,
locfit> run install.cmd
locfit> exit
-
To make LOCFIT accessible to multiple users,
move the locfit.sh script to /usr/local/bin/locfit.
You'll need to edit the LFHOME variable in that script.