Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by pryrt (Abbot)
on Dec 21, 2019 at 17:29 UTC ( [id://11110477]=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

seems that there is another Perl installation on the system

it all depends how you "installed" the Strawberry. Because you used the PDL, which only comes in the portable/zip version, if you want to be using that version, you need to run its portableshell.bat to set up the environment correctly.

you can use the cmd.exe where perl command to find every instance of perl in your path; the first it lists is the first it runs across (and thus the one that will be executed). Without running portableshell.bat, I am assuming you will see that older v5.12.3 path, wherever that is, as the only result. While running portableshell.bat, I would hope you would see the Strawberry PDL v5.30.1 as the first perl.exe in the path (and maybe see the older v5.12.3 second). To install a module in the PDL edition, you would need to be inside the portableshell.bat when running cpanm Algorithm::SVM or any other perl-related commands.

You might also want to look into whether you really need the old v5.12.3 -- it depends on how/where it was installed, and whether it was another app that installed it, or just a previous standalone installation of perl. If you really do need multiple instances of perl available on Windows, and it's not caused by some other app installing a perl interpreter for its own needs (which then normally shouldn't have been put in your path), I highly recommend grabbing a copy of berrybrew, which helps manage multiple perls on the same system; the newest version that stevieb has released even allows switching between the default strawberry perls that berrybrew has already handled and "foreign" perls that you have installed elsewhere (either before or after installing berrybrew -- where "foreign" could be non-berrybrew-installed strawberries, or other perl distributions), though I haven't tried that feature yet.

Replies are listed 'Best First'.
Re^2: Unable to build and test Algorithm::SVM module on Windows 10 with Perl v.5.30.1
by stevieb (Canon) on Dec 21, 2019 at 17:43 UTC

    I can confirm that this isn't due to having multiple Perl instances on the system. I can also confirm it isn't related to just the PDL versions of Strawberry.

    The Testers matrix shows nothing but failure on Windows platforms, and I've tried numerous things to get it to work (adding #include <cstring> and using namespace std;, removing all instances of Perl and installing just one, trying Perl versions that aren't listed in the failures etc) to no avail.

    So there's something else weird going on that I couldn't figure out with the time I had to troubleshoot.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-28 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found