0

I'm trying to install lpsolve using this: http://jeyroz.tumblr.com/post/605709794/lpsolve-php So, I'm trying to execute commands:

$ phpize
$ ./configure --enable-maintainer-zts --with-phplpsolve[version]=../..
$ make
$ make test

When I execute phpize, it says:

configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions

Not sure if this is normal.

When I execute ./configure --enable-maintainer-zts --with-phplpsolve55=../.., it says:

WARNING: unrecognized options: --enable-maintainer-zts
and then there is some checking and error.
configure: error: Invalid phplpsolve55 library, make_lp() not found

Can anyone help me?

Brian Willis
  • 22,768
  • 9
  • 46
  • 50
Sergey Scopin
  • 2,217
  • 9
  • 39
  • 67

1 Answers1

1

the option, and corresponding error message, are totally confusing and make it look as though you first need the phplpsolve55 library in order to build the phplpsolve55 library.

but that is not the case here. it is instead looking for liblpsolve55.so:

checking lpsolve 5.5
  with-phplpsolve55=Insert path to lp_solve here            Include lpsolve Support... yes, shared
checking for make_lp in -llpsolve55... no
configure: error: Invalid phplpsolve55 library, make_lp() not found

the --with-phplpsolve55=../.. option is telling configure where to find the header files; it needs to find the lpsolve library itself, liblbsolve55.so, in a trusted location. on Linux that would be /lib or /usr/lib; on Mac OSX, you may need to change the configure command to:

DYLD_LIBRARY_PATH=../.. ./configure --enable-maintainer-zts --with-phplpsolve55=../..

for more information, see this question.

Community
  • 1
  • 1
jcomeau_ictx
  • 37,688
  • 6
  • 92
  • 107