Search code examples
pythoninstallationlpsolve

Installing lpsolve to work with python in Ubuntu?


Read other questions; unfortunately they were not relevant.

Using this tutorial: http://lpsolve.sourceforge.net/5.5/Python.htm

Found this file: lp_solve_5.5.2.0_exe_ux32

That contains these files:

  1. libbfp_etaPFI.so
  2. libbfp_GLPK.so
  3. libbfp_LUSOL.so
  4. libxli_CPLEX.so
  5. libxli_DIMACS.so
  6. libxli_LINDO.so
  7. libxli_MathProg.so
  8. libxli_XPRESS.so
  9. libxli_ZIMPL.so
  10. lp_solve

The tutorial says the need file is: lpsolve55.so

How do you get lpsolve working with Python in Ubuntu?


Solution

  • You will need this file: lp_solve_5.5.2.0_Python2.5_exe_ux64.tar.gz

    Inside it you will find: liblpsolve55.so

    You need to put that file in a place accessible to the python path. Had problems doing that so it's in the project's folder.

    You also need this file: lp_solve_5.5.2.0_dev_ux64.tar.gz

    Inside it you will find: liblpsolve55.so

    This file needs to go to /lib/usr