Skip to main content

Gurobi license overlapping

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Eli Towle
    Gurobi Staff Gurobi Staff

    The \( \texttt{grbgetkey} \) is an executable used to retrieve a license, but it is not a license itself.

    It sounds like \( \texttt{/opt/gurobi/linux64/bin}\) is part of your \( \texttt{PATH} \) environment variable. So, you could fix this by modifying the necessary environment variables so the Gurobi 9.0.2 directories show up at the beginning. Slightly modifying the bash commands from the Linux installation guide, we can do:

    export GUROBI_HOME="/home/ktaulant/gurobi902/linux64"
    export PATH="${GUROBI_HOME}/bin:${PATH}"
    export LD_LIBRARY_PATH="${GUROBI_HOME}/lib"

    If \( \texttt{LD_LIBRARY_PATH} \) is already set, replace the last command with the following:

    export LD_LIBRARY_PATH="${GUROBI_HOME}/lib:${LD_LIBRARY_PATH}"

    For a permanent solution, these commands should be added to your \( \texttt{~/.bashrc} \) file. If you do this, start a new bash session for the changes to take effect.

    After you get everything working, it would be good to remove \( \texttt{/opt/gurobi/linux64} \) and its subdirectories from your environment variables.

    0
  • Taulant Kerci
    Gurobi-versary
    First Comment
    First Question

    Hi Eli, It works now. Thank you very much!

    0

Post is closed for comments.