The library is available by ftp at the following address:
The web site for the library is
The current distribution contains the directories
- src for the source codes,
- doc for the documentation (manual.ps.gz),
- html for the documentation in html,
- expl containing examples,
- config for the configuration files.
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:
- Get the file ALP.tgz by ftp.
- 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>.
- Move in <ALP> and type make. You will obtain
- a directory (lib-linux, lib-solaris or
lib-dec) containing the libraries for your architecture.
- the compilation tool alp, configured for your environnement.
If you want to get in addition the precompile
libraries, for other architectures, type:
- make lib-linux (for pc linux),
- make lib-solaris (for sun solaris),
- make lib-decosf1 (for dec).
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 |
- Move to the directory config.
- 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
SYSTEM=solaris
if you are working on sun stations.
SYSTEM=linux
if you are working on linux stations.
SYSTEM=decosf1
if you are working on dec stations.
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.*
- 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.
- 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>
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:
- -h* display this help.
- ? search help on a word (not yet ready).
- -v display the version of the library.
- -r compile and run the executable *.ex
- -f force the file *.cc to be (re)compile and run the
executable *.ex
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.