Re: [Gurobi] Help installing/uninstalling

3,673 views
Skip to first unread message

Christopher Maes

unread,
Oct 31, 2012, 12:27:04 PM10/31/12
to gur...@googlegroups.com
> 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

Pieter Coussement

unread,
Oct 31, 2012, 12:32:23 PM10/31/12
to gur...@googlegroups.com
Thanks,
Indeed, I just found out that is was saying some stupid things there.
Got it working.

However as i was working in the bash (ubuntu 12.04) is wanted to
install the key.
I cancelled it, because is was working again under the bash, and the
license should be on the users name.

at that point the bash connected with the internet.

I got out of bash, tried again, and now it is not working at all :-S.
Even rebooted, but the key simply is not working.
I asked for another one.
Same story there...

i keeps on returning:

grbgetkey: command not found

any help?
best regards,
Pieter

Greg Glockner

unread,
Oct 31, 2012, 1:05:59 PM10/31/12
to gur...@googlegroups.com
Sounds like you need to configure the PATH and other environment variables as explained in the Quick Start Guide:

http://www.gurobi.com/documentation/5.0/quick-start-guide/node1

Reply all
Reply to author
Forward
0 new messages