I am using MacBook Air M1. I downloaded GAP from https://www.gap-system.org/ the file gap-4.12.2.tar.gz . In download, I double-click it and there is a folder with the name gap-4.12.2 . Now I cannot install it as I am new in computer knowledge. Please help me step by step process to install and run GAP. Thank You .

2 Answers 2


If you are unfamiliar with installing/compiling Unix binaries on macOS, you can use Homebrew (a package manager) for this.

  • Install Homebrew by following the instructions on https://brew.sh
  • Run brew install gap-system/gap/gap in Terminal to install GAP.
  • curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75315 ms: Operation timed out------------ this is showing
    – neelkanth
    Mar 14, 2023 at 16:15
  • this problem is solved by DNS8.8.8.8
    – neelkanth
    Mar 14, 2023 at 16:32
  • Now brew install gap-system/gap/gap is problem
    – neelkanth
    Mar 14, 2023 at 16:32
  • @neelkanth We can't see the output on your screen, so unless you share that with us, we can't help you.
    – nohillside
    Mar 14, 2023 at 16:38
  • I think now it is solved after calling the gap on the terminal it is as below
    – neelkanth
    Mar 14, 2023 at 16:53

The installation instructions for macOS are mentioned on the linked page, under the section titled The Basic Steps of a GAP Installation:

  • https://www.gap-system.org/Download/index.html

  • Verify that all required tools are installed.

  • Choose your preferred archive format and download the corresponding archive.

  • Unpack the archive.

  • On UNIX, Linux or macOS: compile the GAP core system by running ./configure; make in the unpacked directory.

  • On UNIX, Linux or macOS: 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.

  • On Windows: no compilation is needed, since compiled executables for GAP and some packages are already provided by the .exe installer.

  • Adjust some links/scripts/icons etc., depending on your system, to make the new version of GAP available to the users of your machine.

  • Optional: run a few tests.

Alternatively, you can install via Homebrew. This is a preferred approach if you do not wish to perform compilation yourself.

Do note however that the linked tap is unofficial and unmaintained.

  • Actually these are given on GAP site but I am unable to apply these
    – neelkanth
    Mar 14, 2023 at 6:26
  • @neelkanth please edit your question to be more specific about the things which don‘t work for you.
    – nohillside
    Mar 14, 2023 at 7:43
  • @nohillside please tell me how to apply this step? On UNIX, Linux or macOS: compile the GAP core system by running ./configure; make in the unpacked directory.
    – neelkanth
    Mar 14, 2023 at 8:21
  • @Nimesh Neema How to apply this step On UNIX, Linux or macOS: compile the GAP core system by running ./configure; make in the unpacked directory. Thank you.
    – neelkanth
    Mar 14, 2023 at 8:22
  • @neelkanth see 2nd answer for an easier way.
    – nohillside
    Mar 14, 2023 at 10:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .