Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
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
Project: cocalc-sagemath-dev-slelievre
Views: 4183461<!-- %W install.xml GAP documentation Greg Gamble -->2<!-- %H -->3<!-- %Y Copyright (C) 2001, School of Math & Comp. Sci., St Andrews, Scotland -->456<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->7<Chapter Label="Installing and Loading the Example Package">8<Heading>Installing and Loading the Example Package</Heading>91011<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->12<Section Label="Unpacking the Example Package">13<Heading>Unpacking the Example Package</Heading>1415If the &Example; package was obtained as a part of the &GAP; distribution16from the <Q>Download</Q> section of the &GAP; website, you may proceed17to Section <Ref Sect="Compiling Binaries of the Example Package"/>.18Alternatively, the &Example; package may be installed using a separate archive,19for example, for an update or an installation in a non-default location20(see <Ref Sect="GAP Root Directories" BookName="ref"/>).21<P/>2223Below we describe the installation procedure for the <File>.tar.gz</File>24archive format. Installation using other archive formats is performed in a25similar way.26<P/>2728To install the &Example; package, unpack the archive file, which should29have a name of form <C>example-<A>XXX</A>.tar.gz</C> for some version number30<A>XXX</A>, by typing31<P/>32 <C>gzip -dc example-<A>XXX</A>.tar.gz | tar xpv</C>33<P/>3435It may be unpacked in one of the following locations:36<List>37<Item>38in the <File>pkg</File> directory of your &GAP; 4 installation;39</Item>40<Item>41or in a directory named <File>.gap/pkg</File> in your home directory42(to be added to the &GAP; root directory unless &GAP; is started with43<C>-r</C> option);44</Item>45<Item>46or in a directory named <File>pkg</File> in another directory of your47choice (e.g. in the directory <File>mygap</File> in your home48directory).49</Item>50</List>5152In the latter case one one must start &GAP; with the <C>-l</C> option,53e.g. if your private <F>pkg</F> directory is a subdirectory of54<F>mygap</F> in your home directory you might type:55<P/>56 <C>gap -l ";<A>myhomedir</A>/mygap"</C>57<P/>58where <A>myhomedir</A> is the path to your home directory, which (since59&GAP; 4.3) may be replaced by a tilde (the empty path before the60semicolon is filled in by the default path of the &GAP; 4 home61directory).6263</Section>6465<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->66<Section Label="Compiling Binaries of the Example Package">67<Heading>Compiling Binaries of the Example Package</Heading>6869After unpacking the archive, go to the newly created <F>example</F> directory70and call <C>./configure</C> to use the default <C>../..</C> path to the71&GAP; home directory or <C>./configure <A>path</A></C> where <A>path</A> is72the path to the &GAP; home directory, if the package is being installed in a73non-default location. So for example if you install the package in the74<F>~/.gap/pkg</F> directory and the &GAP; home directory is <F>~/gap4r5</F>75then you have to call76<P/>77<Log><![CDATA[78./configure ../../../gap4r5/79]]></Log>80<P/>81This will fetch the architecture type for which &GAP; has been compiled82last and create a <F>Makefile</F>. Now simply call83<P/>84<Log><![CDATA[85make86]]></Log>87<P/>88to compile the binary and to install it in the appropriate place.8990</Section>919293<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->94<Section Label="Loading the Example Package">95<Heading>Loading the Example Package</Heading>9697To use the &Example; Package you have to request it explicitly. This is98done by calling <Ref Func="LoadPackage" BookName="ref"/>:99<P/>100<Example><![CDATA[101gap> LoadPackage("example");102----------------------------------------------------------------103Loading Example 3.3 (Example/Template of a GAP Package)104by Werner Nickel (http://www.mathematik.tu-darmstadt.de/~nickel),105Greg Gamble (http://www.math.rwth-aachen.de/~Greg.Gamble), and106Alexander Konovalov (http://www.cs.st-andrews.ac.uk/~alexk/).107----------------------------------------------------------------108true109]]></Example>110<P/>111112If &GAP; cannot find a working binary, the call to <C>LoadPackage</C> will113still succeed but a warning is issued informing that the <C>HelloWorld()</C>114function will be unavailable.115<P/>116If you want to load the &Example; package by default, you can put the117<C>LoadPackage</C> command into your <F>gaprc</F> file118(see Section <Ref Sect="The gap.ini and gaprc files" BookName="ref"/>).119120</Section>121</Chapter>122123<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->124<!-- %% -->125<!-- %E -->126127128129