A prerequisite to run the GeoCalcLib is to have the GMP Library on your machine. At build time, you will need the main header file gmp.h however the library itself is largely irrelevant, as Matlab provides a gmp redistributable.

To install the GeoCalcLib open your Terminal navigate to your desired directory and clone the repository by typing

git clone https://github.com/worc4021/GeoCalcLib.git
cd GeoCalcLib

Create a text file named User.make in which you define the absolute path to your Matlab installation MATLABROOT and the desired installation directory INSTALLDIR (a directory on your Matlab path), e.g.

# Specify the absolute path to your Matlab installation
MATLABROOT = /Applications/MATLAB_R2019b.app

# Path to which everything should be installed, has to be on Matlab path!
INSTALLDIR = /Users/Username/Documents/MATLAB/Functions

If necessary add GMPINCLUDE with the path to the gmp.h file (I only had to do this on osx ).

Run make

make

If you do not yet have a directory on your Matlab path to store your functions and want to add one, run edit startup in Matlab and add

addpath('/absolute/path/to/your/directory');

or find alternative ways of setting up your path here.

You should now be set up.