next up previous
Next: A gp2c tutorial Up: An introduction to gp2c Previous: An introduction to gp2c

Installing gp2c

Note: The installation procedure has changed in version 0.0.3. Please note that PARI development release 2.2.0 to 2.2.6 are not supported.

After downloading the file gp2c-x.y.zplt.tar.gz (where x,y,z and t depend on the version), you first have to unzip the file with the command:

gunzip gp2c-x.y.zplt.tar.gz

This will create the new file gp2c-x.y.zplt.tar. Next you have to extract the files with the tar program:

tar -xvf gp2c-x.y.zplt.tar

Note: You can do both steps at once with GNU tar by using the command:

tar -zxvf gp2c-x.y.zplt.tar.gz

This creates a directory gp2c-x.y.zplt, which contains the main gp2c files. Now you have to install the program.

You need the file `pari.cfg' (for 2.2.7 and above) or `dft.Config.in' (for 2.1). This file can be found in the PARI object directory or in $prefix/lib/pari/.

Copy or link this file in the gp2c directory, be sure to call it `pari.cfg'.

ln -s .../lib/pari/pari.cfg pari.cfg

Run ./configure, which will search for the PARI version and some other configuration tools of the system. To install the program, type make, and the program will be compiled. You can then run make check to verify that everything has gone fine (a bunch of OK's should show up). All this is completely standard, and you are now ready to use gp2c.

You can use gp2c directly from this directory or you can install it by running make install as root. If you do not install it, you can run it from the gp2c directory by typing ./gp2c


next up previous
Next: A gp2c tutorial Up: An introduction to gp2c Previous: An introduction to gp2c
Bill Allombert 2006-01-28