CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
\Chapter{Installation}
3
4
This package must be installed in the `pkg' subdirectory of any of
5
the {\GAP} 4 root directories. We assume here that this is `/gap4/pkg'.
6
7
\begintt
8
cd /gap4/pkg
9
tar zpxf carat-2.1.7.tar.gz
10
\endtt
11
12
This creates a subdirectory `carat', the home directory of the present
13
interface package. {\CARAT} itself can be installed anywhere on your
14
system. You only have to make sure {\GAP} finds the {\CARAT} binaries,
15
by making a symbolic link from the `bin' subdirectory in `pkg/carat' to
16
the `bin' subdirectory of {\CARAT} itself. In our example, we install
17
{\CARAT} in `/gap4/pkg/carat' (the {\CARAT} tar file should already be
18
there):
19
20
\begintt
21
cd /gap4/pkg/carat
22
zcat carat-2.1b1.tgz || tar pxf -
23
ln -s carat-2.1b1/bin bin
24
cd carat-2.1b1
25
\endtt
26
27
This creates a subdirectory `carat-2.1b1', the {\CARAT} top level directory.
28
For the compilation of {\CARAT}, you have to set the variable `TOPDIR' to the
29
full path of this new directory, possibly along with new values for `CC' and
30
`CFLAGS'. You can do this either in the `Makefile', or directly on the command
31
line:
32
33
\begintt
34
make TOPDIR=`pwd` CFLAGS='-O -std=gnu89'
35
chmod -R a+rX .
36
\endtt
37
38
The flag '-std=gnu89' is necessary if you use gcc of version 5 or higher.
39
If you build for more than one architecture, make sure to do a
40
'make clean' in between.
41
42
You now have to check which subdirectory containing the CARAT
43
binaries has been created in the bin directory. The name of this
44
subdirectory must be the same as that in the main GAP bin directory,
45
'/gap4/bin'. If the names differ, you might have to add a symbolic
46
link to correct this. For instance, if the {\CARAT} bin directory
47
contains `x86_64-pc-linux-gnu', but in the GAP bin directory, you find
48
`x86_64-pc-linux-gnu-gcc-default32', you would have to do this:
49
50
\begintt
51
cd bin
52
ln -s x86_64-pc-linux-gnu x86_64-pc-linux-gnu-gcc-default32
53
ln -s x86_64-pc-linux-gnu x86_64-pc-linux-gnu-gcc-default64
54
\endtt
55
56
You can use one installation of {\CARAT} for both 32bit and 64bit gap.
57
58
Like any other {\GAP} 4 package, {\CARAT} is then loaded in {\GAP} with
59
60
\beginexample
61
gap> LoadPackage("carat");
62
true
63
\endexample
64
65
This package, together with {\CARAT} itself, takes some 208Mb of disk space,
66
or more, depending on the system. Some 170Mb is taken by the catalog
67
of Q-classes if integer matrix groups up to dimension 6. If you want
68
to avoid unpacking this catalog, you can create empty subdirectories
69
70
\begintt
71
cd /gap4/pkg/carat/carat-2.1b1
72
mkdir tables
73
mkdir tables/qcatalog
74
\endtt
75
76
before making {\CARAT}. If you want to unpack the catalog later, just
77
remove the empty directory `tables/qcatalog', and do
78
79
\begintt
80
make Qcatalog
81
\endtt
82
83
84