Linux

To install development tools on a Linux system, use your preferred package manager (e.g. apt-get or aptitude or Synaptic etc.). You need a working C and C++ development environment on your system as well as GNU make.

Note that to obtain a fully functional GAP installation you need not only to compile the core system, but also some of its packages. To install GAP using the source distribution, perform the following steps:

  1. Verify that all required tools are installed. For example, on Ubuntu or Debian do this by calling
     sudo apt-get install build-essential autoconf libtool libgmp-dev libreadline-dev zlib1g-dev
    
  2. Choose your preferred archive format and download the corresponding archive.
    gap-4.14.0.tar.gz 525 MB sha256: 845f5272c26feb1b8eb9ef294bf0545f264c1fe5a19b0601bbc65d79d9506487
    gap-4.14.0.zip 544 MB sha256: 6c35bc27ed5416632dec3227c8d8b891b15f9284615e73094daf8e09a1838494
  3. Unpack the archive.
  4. Compile the GAP core system by running
    ./configure && make
    

    in the unpacked directory.

  5. Change to the pkg subdirectory and call
    ../bin/BuildPackages.sh
    

    to run the script which will build most of the packages that require compilation (provided sufficiently many libraries, headers and tools are available). If something doesn’t work on your system, please refer to the README file provided with the corresponding package.

  6. Adjust some links/scripts/icons etc., to make the new version of GAP available to the users of your machine.
  7. Optional: run a few tests.

Alternatives

Frank Lübeck offers a Linux binary distribution via remote syncronization with a reference installation which includes all packages and some optimisations.

GAP is available for installation in several package managers. A good overview of available GAP packages is available on this repology project page.