grbgetkey: command not found

11,945 views
Skip to first unread message

Adwaitvedant Mathkar

unread,
May 8, 2012, 2:00:33 PM5/8/12
to Gurobi Optimization
Hey,
I am installing gurobi 5.0.0.0 on ubuntu 11.10 on an academic license.
after procuring the key when I paste the command 'grbgetkey .... ' on
my terminal I get the error:

grbgetkey: command not found

I searched previous threads for any suggestions and all seem to
suggest a problem with the path variable. I have given the following
commands for it:

tar xvfz gurobi5.0.0_linux64.tar.gz

export GUROBI_HOME="/opt/gurobi500/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"

The extracted files are in a file named opt.

I'd appreciate if any of you could help me getting around the problem!

Thanks!

Best,
Adwait

Christopher Maes

unread,
May 9, 2012, 11:55:15 AM5/9/12
to gur...@googlegroups.com
> I have given the following
> commands for it:
>
>   tar xvfz gurobi5.0.0_linux64.tar.gz
>
> export GUROBI_HOME="/opt/gurobi500/linux64"
> export PATH="${PATH}:${GUROBI_HOME}/bin"
> export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
>
> The extracted files are in a file named opt.

Hi Adwait,

That should be all you need to do. Perhaps you set the environmental
variables in a different terminal session then the one where you ran
grbgetkey.

You should add the definitions of $GUROBI_HOME, $PATH, and
$LD_LIBRARY_PATH to your .bashrc or .csh files, as suggested in the
Quick Start Guide:
http://www.gurobi.com/documentation/5.0/quick-start-guide/node1

You can check that your PATH is set correctly by running the command:
echo $PATH
you should see the directory /opt/gurobi500/linux64/bin at the end.
You can also run the command:
ls /opt/gurobi500/linux64/bin
you should see grbgetkey in the list of files in the bin directory.
When you run the command:
which grbgetkey
you should see /opt/gurobi500/linux64/bin/grbgetkey.

I hope that helps.

Chris

Adwaitvedant Mathkar

unread,
May 9, 2012, 9:45:30 PM5/9/12
to gur...@googlegroups.com

Hey Chris,
Thanks a lot for a prompt reply!

I did check in the file /opt/gurobi500/linux64/bin, and the key grbgetkey does exist...
Still when I write the command it shows the same error...
i'm setting the path varables as well as the command in the same terminal window.

Any more suggestions? Any help would be highly appreciated..

Thanks!
Best,
Adwait
On Wed, May 9, 2012 at 11:55 PM, Christopher Maes <ma...@gurobi.com> wrote:
> I have given the following
> commands for it:
>
>   tar xvfz gurobi5.0.0_linux64.tar.gz
>
> export GUROBI_HOME="/opt/gurobi500/linux64"
> export PATH="${PATH}:${GUROBI_HOME}/bin"
> export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
>
> The extracted files are in a file named opt.

Hi Adwait,

That should be all  need to do. Perhaps you set the environmental

variables in a different terminal session then the one where you ran
grbgetkey.

You should add the definitions of $GUROBI_HOME, $PATH, and
$LD_LIBRARY_PATH to your .bashrc or .csh files, as suggested in the
Quick Start Guide:
http://www.gurobi.com/documentation/5.0/quick-start-guide/node1

You can check that your PATH is set correctly by running the command:
echo $PATH
you should see the directory /opt/gurobi500/linux64/bin at the end.
You can also run the command:
ls /opt/gurobi500/linux64/bin
you should see grbgetkey in the list of files in the bin directory.
When you run the command:
which grbgetkey
you should see /opt/gurobi500/linux64/bin/grbgetkey.

I hope that helps.

Chris



--
Adwaitvedant Mathkar
Junior Undergraduate 
Department of Electrical Engineering
IIT Bombay

Greg Glockner

unread,
May 10, 2012, 9:02:15 AM5/10/12
to gur...@googlegroups.com
Please send the output when you try to run:
/opt/gurobi500/linux64/bin/grbgetkey

Adwaitvedant Mathkar

unread,
May 10, 2012, 9:10:37 AM5/10/12
to gur...@googlegroups.com
Hey Greg,
Surprisingly when I do that it says:
 No such file or directory

However when I do
$cd bin
$ls

the file grbgetkey is enlisted.

Any suggestions? Any sanity checks?
Thanks!

Best,
Adwait


On Thu, May 10, 2012 at 9:02 PM, Greg Glockner <gloc...@gurobi.com> wrote:
Please send the output when you try to run:
 /opt/gurobi500/linux64/bin/grbgetkey




Greg Glockner

unread,
May 10, 2012, 6:09:46 PM5/10/12
to gur...@googlegroups.com
Seems like your Linux system needs assistance, probably in terms of file permissions. Contact your system administrator. If you're maintaing this computer, start by looking for information about Linux file permissions.

Vladimir Stozhkov

unread,
May 10, 2012, 9:48:38 PM5/10/12
to gur...@googlegroups.com
Hi Greg.
I have Mac OS X Version 10.6.8. So, is your advice still applicable for my system (I guess it is because Ma OS X is based on Linux).

Thank you for assistance.


On Thu, May 10, 2012 at 6:09 PM, Greg Glockner <gloc...@gurobi.com> wrote:
Seems like your Linux system needs assistance, probably in terms of file permissions.  Contact your system administrator.  If you're maintaing this computer, start by looking for information about Linux file permissions.




--
Vladimir Stozhkov.
Graduate Research Assistant.
Industrial and System Engineering Department.
University of Florida

303 Weil Hall
P.O. Box 116595
Gainesville, FL 32611-6595

Phone: 352-871-6136

Greg Glockner

unread,
May 10, 2012, 9:54:47 PM5/10/12
to gur...@googlegroups.com
If you're on Mac OS X, just run the installer with its default options. It will put the files in the correct locations. It's possible to move the files on Mac OS X so long as you know what you're doing in terms of shell programs.

Vladimir Stozhkov

unread,
May 10, 2012, 9:57:14 PM5/10/12
to gur...@googlegroups.com
The Gurobi installer? I still don't understand how it is connected with my problem. 
Has the GetValue function used the memory allocated for the array?


On Thu, May 10, 2012 at 9:54 PM, Greg Glockner <gloc...@gurobi.com> wrote:
If you're on Mac OS X, just run the installer with its default options.  It will put the files in the correct locations.  It's possible to move the files on Mac OS X so long as you know what you're doing in terms of shell programs.




Greg Glockner

unread,
May 10, 2012, 10:16:56 PM5/10/12
to gur...@googlegroups.com
Sorry, it seems that two different topics got mixed together.

Adwaitvedant Mathkar

unread,
May 11, 2012, 2:45:12 PM5/11/12
to gur...@googlegroups.com
Hey Greg,
I've tried the file permissions chmod 777 grbgetkey
But still doesn't work.
Probably I'm missing something, Hence any sanity checks for the issue?
Thanks!

Best,
Adwait


On Fri, May 11, 2012 at 10:16 AM, Greg Glockner <gloc...@gurobi.com> wrote:
Sorry, it seems that two different topics got mixed together.




Adwaitvedant Mathkar

unread,
May 11, 2012, 3:04:21 PM5/11/12
to gur...@googlegroups.com
He everyone,
I was able to solve it.
The commands I used were
$cd bin
$./grbgetkey

and now I have a licencse file in my home fiolder.

But as they say an ending is always a new beginning; I'm not able to call gurobi from my terminal.

Whenever I type gurobi.sh, it shows, no such file/directory.
Do I need to set any environment variables for this?
Or do i need to cd into any particular folder so as to run it?

Any help will be appreciated.Thanks!

Best,
Adwait

Annika

unread,
Dec 3, 2013, 3:47:19 AM12/3/13
to gur...@googlegroups.com
Thank you!
I had the same problem. 
You saved my day ;)

Best wishes

Ed Rothberg

unread,
Dec 3, 2013, 11:28:35 AM12/3/13
to gur...@googlegroups.com

None of this should be necessary if your PATH variable is set correctly.  I suggest you take another look at the installation instructions...


Ed


Rodolfo Timoteo da Silva

unread,
Dec 3, 2013, 11:34:27 AM12/3/13
to gur...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Two things:

1) echo $SHELL, and discover what is your default shell
2) In your default shell configuration add

export GUROBI_HOME="/opt/gurobi560/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"

3) What archive? i.e. bash, ~/.bashrc or if zsh, ~/.zshrc

I'm counting that you followed the link bellow

Att
> --
>
> --- 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/groups/opt_out.


- --

- ---
Rodolfo Tim�teo da Silva
Linux Counter: 359362
skype: zhushazang
Ribeir�o Preto - SP

"Qualidade � inversamente proporcional a variabilidade" - Montgomery
- ---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iF4EAREIAAYFAlKeCBMACgkQSYE5fAFtI6s0bgD8CGs/TRkitBSzjhcdSSiDu5yq
3XhIQ1I3E7jzeDgnahQA/0Pv75YbO7eKJZbGTX7zRJh8lfqICnaFr0Wa5EHfq4n9
=o3mn
-----END PGP SIGNATURE-----

徐青

unread,
Feb 14, 2014, 12:29:35 PM2/14/14
to gur...@googlegroups.com
Well,  I did same things as Adwaitvedant Mathkar 
But what I got is : ./grbgetkey: cannot execute binary file,

I tried this command either from shell window directly, or from the floder of '/opt/gurobi562/linux64/bin',
I would like to know is there some erros with my operation, or some erros witht the version?


Thanks!

在 2013年12月3日星期二UTC+1下午5时34分27秒,Zhu Sha Zang写道:
Rodolfo Tim�teo da Silva
Linux Counter: 359362
skype: zhushazang
Ribeir�o Preto - SP

"Qualidade � inversamente proporcional a variabilidade" - Montgomery

Sonja Mars

unread,
Feb 17, 2014, 8:37:58 AM2/17/14
to gur...@googlegroups.com
Hi,

What is the exact name of your operating system? And is this operating system 32 or 64 bit? From what I see in you email, I guess you are using a 64 bit Linux. Is this correct? If so, what does
echo $PATH
tell you, if you type this in a shell/bash/terminal window?

Did you follow the instructions in the Gurobi Quick Start Guide? Installation instructions can be found here:
http://www.gurobi.com/documentation/5.6/quick-start-guide/software_installation_guid

-- Sonja

qingfen...@gmail.com

unread,
Feb 18, 2019, 2:24:54 AM2/18/19
to Gurobi Optimization
In a terminal run the following command
vi ~/.bashrc
then type i then you can edit the file then add the following lines at the end of the .bashrc file

export GUROBI_HOME="/opt/gurobi810/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"

Then type esc then type :wq then enter to save the .bashrc file.
Then run grbgetkey cxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxx again in your termial
Reply all
Reply to author
Forward
0 new messages