Codebase list lcalc / 44ae958d-07fd-4614-a9a3-7a5e40cd4bd3/main INSTALL
44ae958d-07fd-4614-a9a3-7a5e40cd4bd3/main

Tree @44ae958d-07fd-4614-a9a3-7a5e40cd4bd3/main (Download .tar.gz)

INSTALL @44ae958d-07fd-4614-a9a3-7a5e40cd4bd3/mainraw · history · blame

To install:

in the src directory:

1) Edit the Makefile to reflect your machine. Right now it is set up
for two operating systems: mac os x (Darwin) , and Linux. Set OS_NAME
to reflect your machine. For example if your operating system is Darwin
set the line to:

OS_NAME = Darwin

otherwise set to:

OS_NAME = Linux

2) If you wish to have elliptic curve L-functions you need to
have pari installed on your machine and set the following in
the Makefile:

PREPROCESSOR_DEFINE = -DINCLUDE_PARI

Otherwise (default) just comment out the line:

#PREPROCESSOR_DEFINE = -DINCLUDE_PARI

In the former case (-DINCLUDE_PARI) you also need to make sure that
the following are set to reflect the correct location on your machine
of the pari header file and library. The default in the Makefile
for the location of pari is:

LOCATION_PARI_H = /usr/local/include/pari
LOCATION_PARI_LIBRARY = /usr/local/lib

You will have to modify these lines if pari is installed in
different locations on your machine.

3) at the unix prompt type: make
(If you wish to recompile later, type: make clean
before retyping: make)

This will create the command line application called lcalc
and also a library, libLfunction.a, that can be linked to if
you wish to write your own code. See the README file for usage
and a mini tutorial.

4) If you have root powers, you can do: sudo make install
to copy the application, library, and include files to the
appropriate directories in /usr/local/