Table of Contents
To install GAMS, please follow the steps below as closely as possible. We advise you to read this entire document before beginning the installation procedure. Furthermore, we recommend to use the PKG installer for macOS because it includes the GAMS Studio and it integrates GAMS into macOS, e.g. it is possible to open the GAMS Studio via the Launchpad.
Two installation procedures are available for GAMS on macOS:
Installation using the PKG installer (GAMS52.0.0.pkg)
- Obtain the GAMS PKG file for your CPU architecture (
x86_64orarm64), which is available from https://www.gams.com/download/. - Double click the package and follow the instructions. By clicking on
Customisein the tabInstallation Typeyou can decide to add GAMS to the PATH as well as to reject the installation of GAMS Studio. Note that adding GAMS to the PATH is done by modifying your shell profile file (~/.zprofile,~/.bash_profileetc.). A backup of your old profile is saved (~/.zprofile.gamsbackup,~/.bash_profile.gamsbackupetc.). - In order to test the GAMS installation with
GAMS Studioopen theLaunchpadand click theGAMS Studio 52icon to open the application. Alternatively, go to Applications and open theGAMS Studio 52application. - Install a valid GAMS license. More on the license setup can be found here.
- Open the
Model Library Explorerand open theTRNSPORTmodel (sequence number 001). Run the model and check the contents of the process log, which should be similar to the Terminal output listed in the next bullet point. In order to test the GAMS installation without using
GAMS Studioopen a Terminal window. Execute the following commands to see if everything works as expected:gamslib trnsport gams trnsport
The output should be similar to this:
--- Job trnsport Start 06/26/14 11:24:56 24.3.1 r46409 DEX-DEG Mac x86_64/Darwin GAMS 24.3.1 Copyright (C) 1987-2014 GAMS Development. All rights reserved Licensee: ... --- Starting compilation --- trnsport.gms(69) 3 Mb --- Starting execution: elapsed 0:00:00.024 --- trnsport.gms(45) 4 Mb --- Generating LP model transport --- trnsport.gms(66) 4 Mb --- 6 rows 7 columns 19 non-zeroes --- Executing CPLEX: elapsed 0:00:00.114 IBM ILOG CPLEX 24.3.1 ... DEG Mac x86_64/Darwin Cplex 12.6.0.0 Reading data... Starting Cplex... Space for names approximately 0.00 Mb Use option 'names no' to turn use of names off Tried aggregator 1 time. LP Presolve eliminated 1 rows and 1 columns. Reduced LP has 5 rows, 6 columns, and 12 nonzeros. Presolve time = 0.02 sec. (0.00 ticks) Iteration Dual Objective In Variable Out Variable 1 73.125000 x(seattle.new-york) demand(new-york) slack 2 119.025000 x(seattle.chicago) demand(chicago) slack 3 153.675000 x(san-diego.topeka) demand(topeka) slack 4 153.675000 x(san-diego.new-york) supply(seattle) slack LP status(1): optimal Cplex Time: 0.03sec (det. 0.01 ticks) Optimal solution found. Objective : 153.675000 --- Restarting execution --- trnsport.gms(66) 2 Mb --- Reading solution for model transport --- trnsport.gms(68) 3 Mb *** Status: Normal completion --- Job trnsport.gms Stop 06/26/14 11:24:57 elapsed 0:00:00.487
Uninstall PKG installation
To uninstall a GAMS installation that was installed using the PKG installer, run the following command from the terminal: sudo bash /Library/Frameworks/GAMS.framework/Versions/52/Resources/uninstall.sh. Additionally, you can remove GAMS from the PATH in your shell profile file (~/.zprofile, ~/.bash_profile) if GAMS was added to the PATH during installation.
Installation using Homebrew
- If not already installed, follow the instructions to install Homebrew.
- Then install the GAMS cask using:
brew install --cask gams - To make GAMS available in your shell, add the following to your shell configuration file:
export PATH="/Library/Frameworks/GAMS.framework/Resources:$PATH"