Ahead of referencing it at my PHP Tek 11 talk, I finally got round to pushing the LibSVM extension I knocked up (with the help of Mikko) into PECL. You'll need libsvm out of package management (e.g. apt-get install libsvm-dev or yum install libsvm-devel), and the pecl package to try it:
pecl install svm-beta
The documentation is in the PHP manual, and being that it's fairly early days I would really appreciate anyone that has familiarity with SVM to have a go with the extension, and let me know how it goes, either on twitter, via email (ian dot barber at gmail dot com will work), or of course in the PECL bugtrackers.
George
September 10th, 2012 at 15:44
Hi! i have a problem with your extension for php, can you please help me with that
ive done everything from readme, but still not working
i got error while running from shell (ubuntu, php53)
php: symbol lookup error: /usr/lib/php5/20090626+lfs/svm.so: undefined symbol: svm_set_print_string_function
Ian Barber
September 10th, 2012 at 16:05
Hmm, that sounds like it's getting the wrong version of the SVM library. What version of LibSVM do you have installed?
George
September 10th, 2012 at 16:19
thanx! it was wrong version of libsvm from repo
ive installed libsvm-3.12 from website and it works ok for tests, but there is new notice:
php: symbol lookup error: /usr/lib/php5/20090626+lfs/svm.so: undefined symbol: svm_destroy_model
for 001_train.phpt
Ian Barber
September 10th, 2012 at 16:22
I'll take a look at that one - it may be a small API change that hasn't been picked up on.
wayswang
September 14th, 2012 at 09:32
helloļ¼i have the same problem with George.
i have installed libsvm 3.12,The apache server can start ,but it can't run php code with svm .
the error log is :
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/svm.so: undefined symbol: svm_destroy_model
thank you.
Ian Barber
September 16th, 2012 at 14:33
I think this was due to the old header file being picked up - I've pushed a new version that hopefully will pick it up. If not, could you let me know where the package you are using puts the svm.h file.