GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1[1X2 [33X[0;0YInstalling and Loading the Example Package[133X[101X234[1X2.1 [33X[0;0YUnpacking the Example Package[133X[101X56[33X[0;0YIf the [5XExample[105X package was obtained as a part of the [5XGAP[105X distribution from7the [21XDownload[121X section of the [5XGAP[105X website, you may proceed to Section [14X2.2[114X.8Alternatively, the [5XExample[105X package may be installed using a separate9archive, for example, for an update or an installation in a non-default10location (see [14X'Reference: GAP Root Directories'[114X).[133X1112[33X[0;0YBelow we describe the installation procedure for the [11X.tar.gz[111X archive format.13Installation using other archive formats is performed in a similar way.[133X1415[33X[0;0YTo install the [5XExample[105X package, unpack the archive file, which should have a16name of form [10Xexample-[3XXXX[103X[10X.tar.gz[110X for some version number [3XXXX[103X, by typing[133X1718[33X[0;0Y [10Xgzip -dc example-[3XXXX[103X[10X.tar.gz | tar xpv[110X[133X1920[33X[0;0YIt may be unpacked in one of the following locations:[133X2122[30X [33X[0;6Yin the [11Xpkg[111X directory of your [5XGAP[105X 4 installation;[133X2324[30X [33X[0;6Yor in a directory named [11X.gap/pkg[111X in your home directory (to be added25to the [5XGAP[105X root directory unless [5XGAP[105X is started with [10X-r[110X option);[133X2627[30X [33X[0;6Yor in a directory named [11Xpkg[111X in another directory of your choice28(e.g. in the directory [11Xmygap[111X in your home directory).[133X2930[33X[0;0YIn the latter case one one must start [5XGAP[105X with the [10X-l[110X option, e.g. if your31private [11Xpkg[111X directory is a subdirectory of [11Xmygap[111X in your home directory you32might type:[133X3334[33X[0;0Y [10Xgap -l ";[3Xmyhomedir[103X[10X/mygap"[110X[133X3536[33X[0;0Ywhere [3Xmyhomedir[103X is the path to your home directory, which (since [5XGAP[105X 4.3)37may be replaced by a tilde (the empty path before the semicolon is filled in38by the default path of the [5XGAP[105X 4 home directory).[133X394041[1X2.2 [33X[0;0YCompiling Binaries of the Example Package[133X[101X4243[33X[0;0YAfter unpacking the archive, go to the newly created [11Xexample[111X directory and44call [10X./configure[110X to use the default [10X../..[110X path to the [5XGAP[105X home directory or45[10X./configure [3Xpath[103X[10X[110X where [3Xpath[103X is the path to the [5XGAP[105X home directory, if the46package is being installed in a non-default location. So for example if you47install the package in the [11X~/.gap/pkg[111X directory and the [5XGAP[105X home directory48is [11X~/gap4r5[111X then you have to call[133X4950[4X[32X Example [32X[104X51[4X[28X./configure ../../../gap4r5/[128X[104X52[4X[32X[104X5354[33X[0;0YThis will fetch the architecture type for which [5XGAP[105X has been compiled last55and create a [11XMakefile[111X. Now simply call[133X5657[4X[32X Example [32X[104X58[4X[28Xmake[128X[104X59[4X[32X[104X6061[33X[0;0Yto compile the binary and to install it in the appropriate place.[133X626364[1X2.3 [33X[0;0YLoading the Example Package[133X[101X6566[33X[0;0YTo use the [5XExample[105X Package you have to request it explicitly. This is done67by calling [2XLoadPackage[102X ([14XReference: LoadPackage[114X):[133X6869[4X[32X Example [32X[104X70[4X[25Xgap>[125X [27XLoadPackage("example");[127X[104X71[4X[28X----------------------------------------------------------------[128X[104X72[4X[28XLoading Example 3.3 (Example/Template of a GAP Package)[128X[104X73[4X[28Xby Werner Nickel (http://www.mathematik.tu-darmstadt.de/~nickel),[128X[104X74[4X[28X Greg Gamble (http://www.math.rwth-aachen.de/~Greg.Gamble), and[128X[104X75[4X[28X Alexander Konovalov (http://www.cs.st-andrews.ac.uk/~alexk/).[128X[104X76[4X[28X----------------------------------------------------------------[128X[104X77[4X[28Xtrue[128X[104X78[4X[32X[104X7980[33X[0;0YIf [5XGAP[105X cannot find a working binary, the call to [10XLoadPackage[110X will still81succeed but a warning is issued informing that the [10XHelloWorld()[110X function82will be unavailable.[133X8384[33X[0;0YIf you want to load the [5XExample[105X package by default, you can put the85[10XLoadPackage[110X command into your [11Xgaprc[111X file (see Section [14X'Reference: The86gap.ini and gaprc files'[114X).[133X87888990