Skip to main content

Gurobi with Django on uwsgi on Ubuntu

Answered

Comments

2 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?.
  • Greg Glockner
    • Gurobi Staff Gurobi Staff

    Basically, wherever the Django code runs, it needs to see the shared library file libgurobi90.so. To do this with the LD_LIBRARY_PATH variable, you will need to set this as an environment variable so that Linux can access the shared library.

    That said, if you have sudo privileges to this computer, it might be easier just to put the shared library into /usr/local/lib, e.g.:

    sudo ln -s $GUROBI_HOME/lib/libgurobi90.so /usr/local/lib && sudo ldconfig
    0

Post is closed for comments.