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
#You must set PKGDIR equal to the directory in which GAP packages are stored
2
# on your computer.
3
4
PKGDIR=/home/graham/pkg;
5
6
#You must set GACDIR equal to the directory in which the GAP compiler gac is
7
#stored on your computer.
8
9
GACDIR=/usr/local/lib/gap4r4/bin/i686-pc-linux-gnu-gcc;
10
11
12
13
#####################################################################
14
#DON'T CHANGE ANYTHING BELOW
15
#####################################################################
16
17
18
LIB=$PKGDIR/Hap1.12/lib;
19
20
rm $PKGDIR/Hap1.12/boolean;
21
echo "COMPILED:=true;" > $PKGDIR/Hap1.12/boolean;
22
23
$GACDIR/gac -d $LIB/CompiledGAP/*.c;
24
mkdir $LIB/CompiledGAP/Compiled;
25
mv *.so $LIB/CompiledGAP/Compiled/;
26
27
28
$GACDIR/gac -d $LIB/ArtinCoxeter/*.gi;
29
mkdir $LIB/ArtinCoxeter/Compiled;
30
mv *.so $LIB/ArtinCoxeter/Compiled/;
31
32
$GACDIR/gac -d $LIB/FreeGmodules/*.gi;
33
mkdir $LIB/FreeGmodules/Compiled;
34
mv *.so $LIB/FreeGmodules/Compiled/;
35
36
$GACDIR/gac -d $LIB/Functors/*.gi;
37
mkdir $LIB/Functors/Compiled;
38
mv *.so $LIB/Functors/Compiled/;
39
40
$GACDIR/gac -d $LIB/Homology/*.gi;
41
mkdir $LIB/Homology/Compiled;
42
mv *.so $LIB/Homology/Compiled/;
43
44
$GACDIR/gac -d $LIB/NonabelianTensor/*.gi;
45
mkdir $LIB/NonabelianTensor/Compiled;
46
mv *.so $LIB/NonabelianTensor/Compiled/;
47
48
$GACDIR/gac -d $LIB/Perturbations/*.gi;
49
mkdir $LIB/Perturbations/*.gi;
50
mkdir $LIB/Perturbations/Compiled/;
51
mv *.so $LIB/Perturbations/Compiled/;
52
53
$GACDIR/gac -d $LIB/Polycyclic/*.gi;
54
mkdir $LIB/Polycyclic/Compiled/;
55
mv *.so $LIB/Polycyclic/Compiled/;
56
57
$GACDIR/gac -d $LIB/Polymake/*.gi;
58
mkdir $LIB/Polymake/Compiled/;
59
mv *.so $LIB/Polymake/Compiled/;
60
61
$GACDIR/gac -d $LIB/Resolutions/*.gi;
62
mkdir $LIB/Resolutions/Compiled/;
63
mv *.so $LIB/Resolutions/Compiled/;
64
65
$GACDIR/gac -d $LIB/ResolutionsModP/*.gi;
66
mkdir $LIB/ResolutionsModP/Compiled/;
67
mv *.so $LIB/ResolutionsModP/Compiled/;
68
69
$GACDIR/gac -d $LIB/Rings/*.gi;
70
mkdir $LIB/Rings/Compiled/;
71
mv *.so $LIB/Rings/Compiled/;
72
73
$GACDIR/gac -d $LIB/ModPRings/*.gi;
74
mkdir $LIB/ModPRings/Compiled/;
75
mv *.so $LIB/ModPRings/Compiled/;
76
77
$GACDIR/gac -d $LIB/FpGmodules/*.gi;
78
mkdir $LIB/FpGmodules/Compiled/;
79
mv *.so $LIB/FpGmodules/Compiled/;
80
81
$GACDIR/gac -d $LIB/PolyComplexes/*.gi;
82
mkdir $LIB/PolyComplexes/Compiled/;
83
mv *.so $LIB/PolyComplexes/Compiled/;
84
85
$GACDIR/gac -d $LIB/SimplicialGroups/*.gi;
86
mkdir $LIB/SimplicialGroups/Compiled/;
87
mv *.so $LIB/SimplicialGroups/Compiled/;
88
89
$GACDIR/gac -d $LIB/RegularCWComplexes/*.gi;
90
mkdir $LIB/RegularCWComplexes/Compiled/;
91
mv *.so $LIB/RegularCWComplexes/Compiled/;
92
93
94
$GACDIR/gac -d $LIB/GraphsOfGroups/*.gi;
95
mkdir $LIB/GraphsOfGroups/Compiled/;
96
mv *.so $LIB/GraphsOfGroups/Compiled/;
97
98