Here are instructions to add Gurobi Solver to an existing AMPL installation on Linux:
tar xvfz amplgurobilink6.0.0_linux64.tar.gzThe file name should be adjusted to reflect the actual archive file. Extraction will produce a subdirectory called
ampl, which contains the Gurobi Solver software.ampl subdirectory to the directory where AMPL is installed on your computer.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"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/bin"
And users of the csh shell would add the following to their .cshrc files:
setenv PATH ${PATH}:/usr/local/bin
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/bin
If LD_LIBRARY_PATH is not already set, you would use the following instead:
export LD_LIBRARY_PATH="/usr/local/bin"or
setenv LD_LIBRARY_PATH /usr/local/bin
fingerprint -o fp.outThis will generate a fingerprint file named
fp.out. To request your license key (after we have received your payment or a Gurobi sales representative has approved your request to evaluate AMPL), email the fp.out file to license@gurobi.com.