Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Unable to build and test Algorithm::SVM module on Windows 10 with Perl v.5.30.1

by bliako (Monsignor)
on Dec 21, 2019 at 17:08 UTC ( [id://11110476]=note: print w/replies, xml ) Need Help??


in reply to Unable to build and test Algorithm::SVM module on Windows 10 with Perl v.5.30.1

I will summarise your situation so other people can use this simple hint in order to compile Algorithm::SVM. The error is that (C++'s) memcpy() is not found (during compilation) because of not including the right header in file bindings.cpp. The solution is to insert a #include <cstring> at the includes section of file bindings.cpp of said module. This was enough to install Algorithm::SVM in my Linux box. And I have also sent an bug-mail to the author. So that will bring Algorithm::SVM back to the living.

In your case you have another problem with the linker, because of a mix-up of perl binaries and libraries. The perl executable you are using to build the module (perl Makefile.PL) is v5.12.3. But it's likely that you unzipped the new perl and its libraries to a folder which is searched first by the linker. And it finds first the libraries of the new Perl. If that's the case, you are in for lots more problems...

I do not know what is the practice of having two perls in Windows. Or how does the linker work and how to check its search paths. I am sure some other fellow Monk will be able to advice you with that.

In the meantime, perhaps using the newer Perl (by using its full path e.g. c:/sw/pdl/perl.exe) when you prepare the Makefile will work for you.

bw, bliako

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11110476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-16 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found