Skip to main content

Cannot modify efficiently the rpath of gurobi tools

Comments

4 comments

  • 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

Please sign in to leave a comment.