Howto install and use lp_solve and its Python extension module as non root on Linux?
Compile and install the lp_solve shared library:
-
Download
lp_solve_5.5.0.10_source.tar.gzfrom SourceForge and untar so you get a directorylp_solve_5.5with contents. -
Enter directory
lp_solve_5.5/lpsolve55and excecutesh cccto compile the lpsolve library
-
Move the shared library
liblpsolve55.soto~/usr/lib/. -
Declare the environment variable
LD_LIBRARY_PATHwithexport LD_LIBRARY_PATH=~/usr/lib/in
.bashrcor.profileor something.
Install the Python module
-
Download
lp_solve_5.5.0.10_Python_source.tar.gzfrom SourceForge and untar, which will createlp_solve_5.5/extra/Pythoninside the previously created directory. -
Enter directory
lp_solve_5.5/extra/Pythonand compile and install withpython setup.py install --prefix=~/usr/