Cannot modify efficiently the rpath of gurobi tools

Comments

4 comments

  • Matthias Miltenberger

    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
    Comment actions Permalink
  • Sébastien Moretti

    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
    Comment actions Permalink
  • Matthias Miltenberger

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

    0
    Comment actions Permalink
  • Sébastien Moretti

    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
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk