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
#!/usr/bin/env bash
2
set -ex
3
4
# build GAP in a subdirectory
5
git clone --depth=2 https://github.com/gap-system/gap.git $GAPROOT
6
cd $GAPROOT
7
./autogen.sh
8
./configure
9
make -j4 V=1
10
make bootstrap-pkg-full
11
12
GAPROOT="$(cd .. && pwd)"
13
14
if [[ $ABI == 32 ]]
15
then
16
CONFIGFLAGS="CFLAGS=-m32 LDFLAGS=-m32 LOPTS=-m32 CXXFLAGS=-m32"
17
fi
18
19
# build some packages...
20
cd pkg
21
22
cd guava-*
23
./configure
24
make
25
cd ..
26
27
cd io-*
28
./autogen.sh
29
./configure $CONFIGFLAGS
30
make -j4 V=1
31
cd ..
32
33
cd profiling-*
34
./autogen.sh
35
# HACK to workaround problems when building with clang
36
if [[ $CC = clang ]]
37
then
38
export CXX=clang++
39
fi
40
./configure $CONFIGFLAGS
41
make -j4 V=1
42
cd ..
43
44