ERRO: Environment variable GUROBI_HOME is not set.

2,537 views
Skip to first unread message

Guido Pantuza - Miziphi

unread,
Apr 8, 2016, 9:24:45 AM4/8/16
to Gurobi Optimization
Hi, I am installing gurobi 6.5.1 on ubuntu 14.04 LTS on an academic license. When I try to run any gurobi command i got the errorcommand not found or Environment variable GUROBI_HOME is not set.

I have followed the user guide steps to set the environment variables. The license is ok.

Renan Garcia

unread,
Apr 8, 2016, 1:21:58 PM4/8/16
to gur...@googlegroups.com
Did you open a new terminal after updating your .bashrc file according to the instructions at https://www.gurobi.com/documentation/6.5/quickstart_linux/software_installation_guid.html? If not, please try this so that the exports can take effect. If you did, please post the results of the following commands:

  echo $GUROBI_HOME
  ls $GUROBI_HOME

On Apr 8, 2016, at 9:24 AM, Guido Pantuza - Miziphi <gpan...@gmail.com> wrote:

Hi, I am installing gurobi 6.5.1 on ubuntu 14.04 LTS on an academic license. When I try to run any gurobi command i got the errorcommand not found or Environment variable GUROBI_HOME is not set.

I have followed the user guide steps to set the environment variables. The license is ok.

--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guido Pantuza - Miziphi

unread,
Apr 8, 2016, 2:37:04 PM4/8/16
to Gurobi Optimization
Dear Garcia, when i open a new terminal, if i use the command  echo $GUROBI_HOME thres no answer, just a empty line, if i use ls $GUROBI_HOME just appears the files and folders of the current folder.

If i set the variables, using the command "export" and then use the 
command  echo $GUROBI_HOME, i get the right path and i can use the gurobi (this is valid for the other variables). But after close the terminal, the variables loss hers path, and i need to set all again.

Thank you for your help.

Renan Garcia

unread,
Apr 8, 2016, 2:43:18 PM4/8/16
to gur...@googlegroups.com
As stated in the instructions at https://www.gurobi.com/documentation/6.5/quickstart_linux/software_installation_guid.html, you can place the export commands inside a file named '.bashrc' in your home directory so that the exports persist across different terminal sessions. The commands in this file are executed each time you open a terminal. This is a basic Linux concept which is not specific to Gurobi, so you can Google 'bashrc file' if you need more guidance on how to set one up.

Guido Pantuza - Miziphi

unread,
Apr 12, 2016, 10:38:56 AM4/12/16
to Gurobi Optimization
thank you, problem solved.

Reply all
Reply to author
Forward
0 new messages