> I'm trying to install gurobi 5.01 on a ubuntu 12.04 64 bit computer for
> matlab.
>
> but this is what i get:
>
>>> gurobi_setup
> Error using gurobi_setup (line 31)
> The Gurobi environmental variables are not set.
> Please check that Gurobi is installed correctly, and these variables are
> visible within MATLAB.
Hi Pieter,
The Gurobi MATLAB interface requires certain environmental variables
to be set. Please follow the Linux installation instructions in the
Quick Start Guide:
http://www.gurobi.com/documentation/5.0/quick-start-guide/node1
and verify the GUROBI_HOME, PATH, and LD_LIBRARY_PATH variables are
properly set from the command line.
You should also verify that Gurobi is correctly installed and has a
valid license by running the Gurobi interactive shell. Instructions
for this can be found on the following page under the 'Testing the
License' section:
http://www.gurobi.com/documentation/5.0/quick-start-guide/node2
If the interactive shell works, you can launch MATLAB from the Linux
command line, change to the matlab subdirectory of the Gurobi
installation, and run
>> gurobi_setup
at the MATLAB prompt. This will install the Gurobi MATLAB interface.
If you still see an error about environmental variables, you can use
the MATLAB commands
>> getenv('GUROBI_HOME')
>> getenv('PATH')
>> getenv('LD_LIBRARY_PATH')
to see the values MATLAB has for these environmental variables.
Thanks,
Chris