Get the files by ftp
The library is available by ftp at the following address:
ftp://ftp-sop.inria.fr/saga/ALP.tgz
The web site for the library is
http://www.inria.fr/saga/logiciels/ALP/
The current distribution contains the directories Precompiled external libraries involved in ALP are available at:
   ftp://ftp-sop.inria.fr/saga/mourrain/lib-linux.tgz   (for linux)
   ftp://ftp-sop.inria.fr/saga/mourrain/lib-solaris.tgz (for sun solaris)
Here are the instructions to install the library:
  1. Get the file ALP.tgz by ftp.
  2. Type
          tar zxvf ALP.tgz
    
    (or gzip -dc ALP.tgz |tar -xvf -) You will otain a directory ALP containing the current distribution, that you will put at your convenience in a place that we will refer hereafter by <ALP>.

  3. Move in <ALP> and type make. You will obtain
If you want to get in addition the precompile libraries, for other architectures, type: Now, you can try a first example:
   ./alp expl/Linalg.ex
Warning:
In order to run correctly the installation, check that the following commands are available:
   cd, mkdir, echo, sed, rm, uname, wget, tar, make
The library is working with a compiler version of g++ (g++ -v) greater than
   g++-2.95 
If they are not available, ask to your system administrator.



Installing the script alp
  1. Move to the directory config.
  2. If necessary, that is, if there is no command called uname, which returns the type of workstation your are working on, edit the second line of the Makefile and replace it by This will specify the file config/Makefile... that will be used.

    If you want to modify the environment variables, edit if necessary the files
       <ALP>/config/Makefile.*
    
  3. Type make alp. You obtain the script alp. The variable DIR is set to the directory of the current version of alp. The variable SYSTEM specifies the type of workstation.

  4. Now add the script alp to your path, by moving it to your bin directory
    cp alp ~/bin
    export PATH=$PATH:$HOME/bin
    
    or
    export PATH=$PATH:<the complete name of the directory config>
    
How to use it


Once installed, the library can be used from any position, with the command alp. To compile the file file.cc, type
 alp file.cc
You get an executable file file.ex, that you can run:
 ./file.ex
This command calls the usual make command, with a Makefile adapted to the configuration (type of machine, libraries, ...). You can define locally your own Makefile.alp (eg. for defining OBJ=...). In this case, the command alp will also load this Makefile.alp and use it to compile the files.

Here are the options of this command:
Using a makefile
Here is an example of Makefile that you can edit in the directory where you want to compile the files (eg. fich.cc) using ALP, if you cannot use the compilation command alp:
#----------------------------------------------------------------------
CCFLAGS= -O2
CCC=g++
#----------------------------------------------------------------------
ALP=DIRECTORY_WHERE_YOU_PUT_ALP
INCPATH= -I$(ALP)/src
LIBPATH= -L. -LDIRECTORY_WHERE_YOU_PUT_THE_LIB
LIB= -lalp -lmps -lgmp -llapack -lblas -lg2c -lm -lincres -lmixvol
#----------------------------------------------------------------------
.SUFFIXES: .ex .cc
.cc.ex:
        $(CCC)  $(CCFLAGS) $(INCPATH) $(LIBPATH) -o $*.ex  $*.cc $(OBJ) $(LIB)
#----------------------------------------------------------------------
You can use it as follows:
   make fich.ex 
which will compile the file fich.cc, with the rule .cc.ex of the makefile.