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

Path: gap4r8 / bin / gap.sh
Views: 418346
1
#!/bin/sh
2
#############################################################################
3
##
4
## gap.sh GAP Martin Schoenert
5
##
6
## This is a shell script for the UNIX operating system that starts GAP.
7
## This is the place where you make all the necessary customizations.
8
## Then copy this file to a directory in your search path, e.g., '~/bin'.
9
## If you later move GAP to another location you must only change this file.
10
##
11
12
13
#############################################################################
14
##
15
## GAP_DIR . . . . . . . . . . . . . . . . . . . . directory where GAP lives
16
##
17
## Set 'GAP_DIR' to the name of the directory where you have installed GAP,
18
## i.e., the directory with the subdirectories 'lib', 'grp', 'doc', etc.
19
## The default is '/home/user/gap4r8', which is where you installed GAP.
20
## You won't have to change this unless you move the installation.
21
##
22
if [ "x$GAP_DIR" = "x" ]; then
23
GAP_DIR="/home/user/gap4r8"
24
fi
25
26
27
#############################################################################
28
##
29
## GAP_MEM . . . . . . . . . . . . . . . . . . . amount of initial workspace
30
##
31
## Set 'GAP_MEM' to the amount of memory GAP shall use as initial workspace.
32
## The default depends on whether GAP is compiled with in 32-bit or 64-bit
33
## mode. You have to uncomment and change the following if you want GAP
34
## to use a larger initial workspace. If you are not going to run GAP
35
## in parallel with other programs you may want to set this value close
36
## to the amount of memory your computer has.
37
##
38
#if [ "x$GAP_MEM" = "x" ]; then
39
#GAP_MEM="-m 256m"
40
#fi
41
42
43
#############################################################################
44
##
45
## GAP_PRG . . . . . . . . . . . . . . . . . name of the executable program
46
##
47
## Set 'GAP_PRG' to the name of the executable program of the GAP kernel.
48
## The default is '<target>/XX-bit/gap' where <target> is the target you
49
## have selected during compilation and XX is 32 or 64 - set automatically
50
## according to your system architecture, unless specified by you at the
51
## './configure' stage.
52
##
53
if [ "x$GAP_PRG" = "x" ]; then
54
GAP_PRG=x86_64-pc-linux-gnu-gcc-default64/gap
55
fi
56
57
58
#############################################################################
59
##
60
## GAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . run GAP
61
##
62
## You probably should not change this line, which finally starts GAP.
63
##
64
exec "$GAP_DIR/bin/$GAP_PRG" $GAP_MEM -l "$GAP_DIR" "$@"
65
66