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: 418346%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1\Chapter{Installation}23This package must be installed in the `pkg' subdirectory of any of4the {\GAP} 4 root directories. We assume here that this is `/gap4/pkg'.56\begintt7cd /gap4/pkg8tar zpxf carat-2.1.7.tar.gz9\endtt1011This creates a subdirectory `carat', the home directory of the present12interface package. {\CARAT} itself can be installed anywhere on your13system. You only have to make sure {\GAP} finds the {\CARAT} binaries,14by making a symbolic link from the `bin' subdirectory in `pkg/carat' to15the `bin' subdirectory of {\CARAT} itself. In our example, we install16{\CARAT} in `/gap4/pkg/carat' (the {\CARAT} tar file should already be17there):1819\begintt20cd /gap4/pkg/carat21zcat carat-2.1b1.tgz || tar pxf -22ln -s carat-2.1b1/bin bin23cd carat-2.1b124\endtt2526This creates a subdirectory `carat-2.1b1', the {\CARAT} top level directory.27For the compilation of {\CARAT}, you have to set the variable `TOPDIR' to the28full path of this new directory, possibly along with new values for `CC' and29`CFLAGS'. You can do this either in the `Makefile', or directly on the command30line:3132\begintt33make TOPDIR=`pwd` CFLAGS='-O -std=gnu89'34chmod -R a+rX .35\endtt3637The flag '-std=gnu89' is necessary if you use gcc of version 5 or higher.38If you build for more than one architecture, make sure to do a39'make clean' in between.4041You now have to check which subdirectory containing the CARAT42binaries has been created in the bin directory. The name of this43subdirectory must be the same as that in the main GAP bin directory,44'/gap4/bin'. If the names differ, you might have to add a symbolic45link to correct this. For instance, if the {\CARAT} bin directory46contains `x86_64-pc-linux-gnu', but in the GAP bin directory, you find47`x86_64-pc-linux-gnu-gcc-default32', you would have to do this:4849\begintt50cd bin51ln -s x86_64-pc-linux-gnu x86_64-pc-linux-gnu-gcc-default3252ln -s x86_64-pc-linux-gnu x86_64-pc-linux-gnu-gcc-default6453\endtt5455You can use one installation of {\CARAT} for both 32bit and 64bit gap.5657Like any other {\GAP} 4 package, {\CARAT} is then loaded in {\GAP} with5859\beginexample60gap> LoadPackage("carat");61true62\endexample6364This package, together with {\CARAT} itself, takes some 208Mb of disk space,65or more, depending on the system. Some 170Mb is taken by the catalog66of Q-classes if integer matrix groups up to dimension 6. If you want67to avoid unpacking this catalog, you can create empty subdirectories6869\begintt70cd /gap4/pkg/carat/carat-2.1b171mkdir tables72mkdir tables/qcatalog73\endtt7475before making {\CARAT}. If you want to unpack the catalog later, just76remove the empty directory `tables/qcatalog', and do7778\begintt79make Qcatalog80\endtt81828384