Skip to main content

Cannot modify efficiently the rpath of gurobi tools

Comments

5 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?.
  • Matthias Miltenberger
    • Gurobi Staff Gurobi Staff

    Hi Sébastien,

    If you want to avoid a global LD_LIBRARY_PATH, I recommend setting this variable only when you need it, e.g. 

    $> LD_LIBRARY_PATH=<custom/gurobi/path> gurobi_cl

    Please don't modify Gurobi binaries.

    Cheers,
    Matthias

    0
  • Sébastien Moretti
    • Gurobi-versary
    • First Comment
    • First Question

    I will try to alias commands with

    LD_LIBRARY_PATH=<custom/gurobi/path>

    in front of them. Thanks

    But I would like to understand why modifying rpath does not work for gurobi

    0
  • Matthias Miltenberger
    • Gurobi Staff Gurobi Staff

    Can you explain in more detail how you used patchelf to modify the rpath?

    0
  • Sébastien Moretti
    • Gurobi-versary
    • First Comment
    • First Question

    On each binary and library (.so file) I run those commands:

    patchelf --set-interpreter <our_local>/ld-linux-x86-64.so.2  <binary or library>
    patchelf --set-rpath $GUROBI_HOME/lib <binary or library>
    0

Post is closed for comments.