http://qs1969.pair.com?node_id=11110474

zubenel0 has asked for the wisdom of the Perl Monks concerning the following question:

Dear Perl Monks,

I ask for you help as I am starting to learn Perl programming. My aim is to create support vector machine (SVM) classifier by using Perl. In order to do this I have installed Strawberry Perl PDL edition v.5.30.1 on Windows 10 and found a module that seemed suitable for this task: "Algorithm::SVM". I tried to install it with command cpanm Algorithm::SVM but got an error:
# Using Test.pm version 1.31 SVM.c: loadable library and perl binaries are mismatched (got handshak +e key 0000000010600080, needed 0000000010a00080) gmake: *** [Makefile:1040: test_dynamic] Error 1

I asked for help at Chatterbox and got a suggestion that module may be compiled if I insert #include <cstring> in file bindings.cpp just after #include <errno.h>. As a consequence, I have downloaded and extracted module, changed bindings.cpp file, ran perl Makefile.PL, gmake and gmake test. I got the same error.

Next, I got a suggestion that something could be wrong if there are 2 perl installations. I opened Windows command prompt and checked that it indeed seems that there is another Perl installation on the system:

perl --version This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x +86-multi-thread

Thanks for any suggestions on what to check next in order to come a little closer to aim to use SVM in Perl.