gac command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gac: command not found
or when using sudo you get the following error message
sudo: gac: command not found
Solutions to gac: command not found
How To Fix gac: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gac is provided by gap-dev package.
gap-dev is:
GAP is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects. GAP is used in research and teaching for studying groups and their representations, rings, vector spaces, algebras, combinatorial structures, and more.
This package contains the GAP compiler and the headers files and objects files necessary to build GAP packages.
The GAP compiler (GAC) creates C code from GAP code and then calls the system’s C compiler to produce machine code from it. This can result in a speedup.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gap-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gap-dev.
sudo apt -y install gap-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install gap-dev
Summary
In this tutorial we learn how to fix gac command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.