Karim BELABAS on Tue, 4 Dec 2001 18:22:00 +0100 (MET)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Installing the Galois package

On Tue, 4 Dec 2001, Cherry Kearton wrote:
> In the installation section on the Galois package it says to untar
> galdata.tgz in the datadir directory which was chosen at configure
> time.  I don't know what that was: is there a way to find out?  For
> example, is there a file or combination of files living there that lives
> nowhere else, which I could find using "locate"?

This directory is normally empty (until you untar galdata.tgz in there,
that is).

1) If your version is relatively recent (>= 2.1.1), you can set the environment
variable GP_DATA_DIR to point to an arbitrary directory (used as 'datadir').
['man gp' will tell you about it if it's available]. Then the hardcoded
default doesn't matter anymore.

2) Otherwise, check for 'datadir' in dft.Config.in if you can locate it.

3) Otherwise, locate paricfg.h and look for GPDATADIR

4) A desperate solution if nothing above works :

a) locate the libpari corresponding to your gp-dyn binary [or the gp binary
itself if you did not install any library; which is presumably the case since
paricfg.h was not found].

b) look for absolute paths in there.

On my machine:

(17:48) geo-karim% strings $HOME/lib/libpari-2.2.so | grep '^/'
/bin/gzip -dc

Here, number 1 is the obvious candidate.

Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas
PARI/GP Home Page: http://www.parigp-home.de/