-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed FreeBSD and some Linux compilations #1
base: master
Are you sure you want to change the base?
Conversation
Hey @DontCryAndPlay! Thanks for making a PR. I've got to be honest, I don't know anything about this repo and anyone who does has left our company. I attempted to build this but I'm a little lost on what do do. Running If you could provide assistance so that I can test this out, that would be greatly appreciated. |
Hey @adamk33n3r. Thanks for your feedback. First, it doesn't detects the For those reasons, I've rewrote the config.m4 file on my repo to match the current OS and it works so easy as:
And optionally: For Debian and derivatives:
You can have a look to it at: https://github.com/DontCryAndPlay/php_lp_solve and try to compile that one to see if it works or not. |
The
config.m4
file has been modified in order to match current FreeBSD and Linux configurations.Also, on
hash.c
malloc.h
include has been changed tostdlib.h
as it throws errors on FreeBSD.The
./configure
script will try to automatically discover the correct lpsolve library and itslp_lib.h
. If the library is not correctly discovered it will throw an error and--with-phplpsolve55=DIR
parameter should be set on./configure
in order to work.A very basic test has been included and it can be executed via
make test
.Current compilation instructions: