The way libsvm is called makes it impossible to use php-ml within a phar file
Hello there,
First of all, thanks for all your work on this project. I've been using it for a while, and now as I'm updating my whole project to the latest versions of everything I just started have the following issue:
In SupportVectorMachine.php line 163:
[Phpml\Exception\LibsvmCommandException]
Failed running libsvm command: "/bin/libsvm/svm-train-osx (...)" with reason: "sh: /bin/libsvm/svm-train-osx: No such file or directory"
It happens that because php-ml comes with an embedded libsvm and has some specific code around that which makes it impossible to called the libsvm that is globally installed within the machine, but more importantly, it makes it impossible to use php-ml within a phar file because PHP can't really called the bin files within the phar file.
In order to make both things possible, we need to change a bit the way the bin path and the OS extension are set.