Installation Notes for macOS

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)

  1. Obtain the GAMS PKG file for your CPU architecture (x86_64 or arm64), which is available from https://www.gams.com/download/.
  2. Double click the package and follow the instructions. By clicking on Customise in the tab Installation Type you 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_profile etc.). A backup of your old profile is saved (~/.zprofile.gamsbackup, ~/.bash_profile.gamsbackup etc.).
  3. In order to test the GAMS installation with GAMS Studio open the Launchpad and click the GAMS Studio 52 icon to open the application. Alternatively, go to Applications and open the GAMS Studio 52 application.
  4. Install a valid GAMS license. More on the license setup can be found here.
  5. Open the Model Library Explorer and open the TRNSPORT model (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.
  6. In order to test the GAMS installation without using GAMS Studio open 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

  1. If not already installed, follow the instructions to install Homebrew.
  2. Then install the GAMS cask using: brew install --cask gams
  3. To make GAMS available in your shell, add the following to your shell configuration file:
    export PATH="/Library/Frameworks/GAMS.framework/Resources:$PATH"