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
<Chapter Label="Intro">
2
<Heading>Installation</Heading>
3
4
<Section Label="Install">
5
<Heading>Installation and system requirements</Heading>
6
7
Both &SCSCP; client and server for &GAP; work in Linux, OS X and Windows.
8
<P/>
9
10
To use the &SCSCP; package it is necessary to install recent versions of
11
&GAP;4 packages &IO; <Cite Key="IO"/>, &GAPDoc; <Cite Key="GAPDoc"/>
12
and &OpenMath; <Cite Key="openmath"/>.
13
<P/>
14
15
The &SCSCP; package is distributed in standard formats (<File>tar.gz</File>,
16
<File>tar.bz2</File>) and can be obtained from
17
<URL>https://gap-packages.github.io/scscp/</URL> or from the &GAP;
18
web site (the latter also offers <File>zoo</File>- and <File>win.zip</File>-archives.
19
To unpack the <File>zoo</File>-archive the program <File>unzoo</File> is needed,
20
which can be obtained from the &GAP; homepage <URL>http://www.gap-system.org/</URL>
21
(see section `Distribution'). To install &SCSCP; package, put its <File>zoo</File>-archive
22
into the <File>pkg</File> subdirectory of your &GAP;4.4 installation and
23
enter the command <C>unzoo -x scscp-X.X.X.zoo</C>, then the subdirectory <File>scscp</File>
24
(containing subdirectories <File>doc</File>, <File>lib</File> etc.) will be created in
25
the <File>pkg</File> subdirectory. Installation using other archive formats is performed
26
in a similar way.
27
<P/>
28
29
When there are no access rights to the root directory of the main &GAP;
30
installation, it is also possible to install the package
31
<E>outside the &GAP; main directory</E> by unpacking it inside a
32
directory <File>MYGAPDIR/pkg</File>. Then to load the package
33
&GAP; should be started with <C>-l ";MYGAPDIR"</C> option.
34
35
</Section>
36
37
<Section Label="Config">
38
<Heading>Configuration files</Heading>
39
40
There are four files in the package which may need to be modified
41
to setup and customise the package.
42
43
The first three files are related with the server's functionality:
44
45
<List>
46
47
<Item>
48
<File>scscp/config.g</File> specifies:
49
<List>
50
<Item>
51
default <C>InfoLevel</C> for the <Ref InfoClass="InfoSCSCP" /> class;
52
</Item>
53
<Item>
54
default &SCSCP; server name and port to be used by <Ref Func="RunSCSCPserver" /> if &GAP;
55
is started with the <File>scscp/example/myserver.g</File> file;
56
</Item>
57
<Item>
58
whether the server accepts calls to procedures which are standard &OpenMath; symbols,
59
or only procedures installed in the transient content dictionary (see <Ref Func="InstallSCSCPprocedure" />);
60
</Item>
61
<Item>
62
service description to be returned to the client by <Ref Func="GetServiceDescription" />.
63
</Item>
64
</List>
65
</Item>
66
67
<Item>
68
<File>scscp/gapd.sh</File> is the script to start the &GAP; &SCSCP; server
69
as a daemon. To use it, adjust the local call of &GAP; and, if necessary,
70
call options (for example, memory usage, startup from the workspace etc.)
71
and the location of the root directory of the &SCSCP; package in section 1
72
of this script.
73
</Item>
74
75
<Item>
76
<File>scscp/example/myserver.g</File> is an example of the server configuration
77
file which loads all necessary packages, reads all needed code, installs
78
all procedures which will be exposed to the client and finally starts the
79
&SCSCP; server (see Chapter <Ref Chap="Server" />).
80
</Item>
81
82
</List>
83
84
The fourth file is related with the client's functionality for parallel computations:
85
86
<List>
87
<Item>
88
The file <File>scscp/configpar.g</File> assigns the global variable
89
<C>SCSCPservers</C> which specifies a list of hosts and ports to
90
search for &SCSCP; services (which may be not only represented by
91
&GAP; services, but also by another &SCSCP;-compliant systems).
92
It will be used to run parallel computations with the &SCSCP;
93
package (see Chapter <Ref Chap="Parallel" />).
94
</Item>
95
</List>
96
97
See comments in these configuration files for further details and examples.
98
99
</Section>
100
101
</Chapter>
102