Page 1 of 1

lp_solve

Posted: Wed Jan 27, 2010 10:24 am
by eduard77
I try to add lp_solve extension to php and I did everything that they told me to do. So I installed the driver where they told me and I added the extension also but it doesn't work. So now in my php.ini file I have this:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "c:/wamp/bin/php/php5.3.0/ext/"
I put the driver php_phplpsolve55.dll in the "ext" directory and I added here:
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll
;extension=php_phplpsolve55.dll
I restarted wamp server but it still doesn't work
Any idea what should I do?
thanks

Re: lp_solve

Posted: Wed Jan 27, 2010 10:27 am
by AbraCadaver
Uhhh... remove the ; in front of extension=php_phplpsolve55.dll and restart.

Re: lp_solve

Posted: Wed Jan 27, 2010 10:47 am
by eduard77
I did this and I think I have found the problem but I cannot solve it exactly. The instruction says like this.
Fatal error: Call to undefined function lpsolve() in Command line code on line 1


Note that the PHP Warning is not always shown. The Fatal error is. This was specifically noted in the web environment.

Then PHP can find the lpsolve driver program, but the driver program cannot find the lpsolve library that contains the lpsolve implementation. This library is called lpsolve55.dll under Windows and liblpsolve55.so under Unix/Linux.
Under Windows, the lpsolve55.dll file must be in a directory that in the PATH environment variable. This path can be shown via the following command in a command prompt: PATH
It is common to place this in the WINDOWS\system32 folder.
I do not know what exactly to do
Thanks

Re: lp_solve

Posted: Wed Jan 27, 2010 10:49 am
by AbraCadaver
Place it in the \WINDOWS\system32 directory.

Re: lp_solve

Posted: Wed Jan 27, 2010 11:00 am
by eduard77
Is the same
not working