Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
AMPL Installation Wizard
Here are instructions to add or upgrade Gurobi Solver to an existing AMPL installation on macOS:
- Determine the directory where AMPL is installed on your computer.
- Extract the contents of the supplied Gurobi Solver file. Extraction is done with the following command:
tar xvfz amplgurobilink9.5.2_mac64.tar.gz
The file name should be adjusted to reflect the actual archive file. Extraction will produce a subdirectory calledampl
, which contains the Gurobi Solver software. - Copy the extracted files inside the
ampl
subdirectory to the directory where AMPL is installed on your computer. - To allow the AMPL-Gurobi executable files to be found when needed, ensure that the
PATH
environment variable includes the AMPL installation directory. Assuming that AMPL is installed in/usr/local/bin
, users of the bash shell would add the following to their .bashrc files:export PATH="${PATH}:/usr/local/bin"
And users of the csh shell would add the following to their .cshrc files:setenv PATH ${PATH}:/usr/local/bin
![](/wp-content/plugins/hd_documentations/content/images/documentation-ampl-guide.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-cloud.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-example-tour.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-quick-start.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-reference-manuals.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-remote-services.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-linux.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-mac-osx.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-windows.webp?x70725)