Can't get Win32::NetResource - perl

I have some code using an old perl version on a live server and I want to get it working on a new activestate installation on my laptop. I am getting an error message complaining about Win32::NetResource not being there. I have tried to locate it on activestate, but have failed. The current version is 5.34 but the working system that presumably has the module is on 5.26.
Another server with a recent starawberry perl doesn't have the module either - worried that it might not be supported any longer.

Related

Why does a packed Perl script not work on a different machine?

I have been trying to compile a script that was written in perl by someone other than myself into an executable format that can be used without having perl installed. There seems to be some sort of issue with Crypt::SSLeay packaging but I'm not sure what the error means. Here is a screenshot of the error message.
I've tried using PAR pp and cava to package, both will create executables that run just fine on the machine I'm using that has perl, but whenever I transfer it to a different computer I get the error seen in the screenshot. It's been the same error each time after changing compiler settings, and I'm not sure what to do at this point. If I have left anything out that may assist in answer please let me know and I will be happy to provide, coding is not my field so I am still learning and this is my first encounter with Perl.
First off, you probably do not need and should not use Crypt::SSLeay. However, both the modern Net::SSLeay and Crypt::SSLeay require OpenSSL binaries to be installed on the machine to run.
both will create executables that run just fine on the machine I'm using that has perl, but whenever I transfer it to a different computer I get the error ...
That's because the target machine does not have OpenSSL installed in the same location on which compiled the modules you are bundling.

Can't locate Understand/license.pm in #INC Error

I want to run my perl script which suppose to use the "Understand Scitool Perl API". I have included the statement "use Understand;" in the script have but when I tun the it on the terminal, it keeps showing me this error:
"Can't locate Understand/license.pm in #INC".
Does anyone know how can I install "Understand" module in order to be able to use its library knowing that I have already installed "Understand" tool.
Note: Im working on Mac operating system.
The SciTools Understand module requires a licence in the form of a license.pm file
If you're doing this at work then you should speak to your system administrator or manager to get hold of one. If you're working on your own then you need to talk to SciTools
Where did you get the main Understand module from?

perl -V failing on Windows 7, even after uninstall, reinstall, reboot cycle

I'm running 32-bit Windows 7 Starter on a cheap netbook. I used to do most of my experimental coding in ActiveState Perl but switched to node.js and stopped using Perl for some time.
I had kept my Perl up to date despite not using it so had the latest version, 5.15.3 Build 1604.
Today I found something I wanted try out in Perl but ran into some problems I'd never seen before.
The perl -V command in the console would lock up without outputting anything.
I uninstalled Perl, reinstalled, did a Windows update, and rebooted my machine but now I get a system error dialog:
The dialog is followed by this error in the console:
Can't load 'C:/Perl/site/lib/auto/Win32/Win32.dll' for module Win32: load_file:The specified module could not be found at C:/Perl/lib/DynaLoader.pm line 191.
at C:/Perl/lib/ActivePerl/Config.pm line 405.
Simple things work in perl, such as printing a literal string. ActiveState's package manager tool, ppm, seems to work fine.
I tried doing a "repair" on the installation through the control panel, but this changed nothing.
After posting the question I've noticed mentions perl512.dll!
For some reason, even though I had uninstalled and reinstalled Perl 5.15.3 something was tying it to Perl version 5.12.X ...
Since ppm was working I tried ppm upgrade Win32 and got:
Win32 0.49 (have 0.44)
Downloading Win32-0.49...done
Unpacking Win32-0.49...done
Generating HTML for Win32-0.49...done
Updating files in user area...done
2 files deleted
1 file installed
4 files updated
Perl -V now works in the console. I can't say I really understand what was going on though.

Installing modules on Active Perl 5.6 on Windows

I am using ActivePerl 5.6.1 Build 635 (let's assume that I absolutely have to work with this version and cannot update to a newer one) on a Windows XP machine. The ppm version with this version of Perl is 2.2.0 and is not the same as the ppm for later versions (as mentioned here ). I am trying to accomplish a simple task : INSTALLING THE PERL MODULE "RPC::XML". Here is a list of things I have done :
1 : Tried installing using CPAN (one of many links as to how to do this is here) but the make commands won't run on my command line as I do not have nmake installed.
2 : Tried using ppm. However I get the following error despite using a direct internet connection.
**PPM> search "RPC::XML"
Error connecting to 'http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/PPMServer'.**
Also I have read that some perl modules for versions 5.8 and above are not even compatible with version 5.6. The activeperl website doesn't even have a version for download for verison 5.6 (as can be seen here).
So my problem is simple.
All I want to do is install a perl module (RPC::XML say) on 5.6.1 using 2.2.0. Also let me know why ppm seems to be unable to connect when I am using a simple direct internet connection.
I am about 2 days old to perl. Ignore any noob statements I might have written, and correct me.
The nice folks at ActiveState give free access to their PPM repositories for folks using their 2 latest releases of perl. Access to their legacy repositories is available for a price.
As such your choices seem to be:
install nmake & use cpan (may also require a c compiler for some modules)
install a relatively modern copy of perl (i.e. free support)
shell out cash for an 'enterprise' subscription of ActivePerl and get your stuff via ppm. (Of course even the Activestate folks my not choose to support any software versions that old.)
do without any of the above, manually parse the make file & type in the commands yourself.

Unable to load HMAC_SHA1 plugin

Running the Twitter Application in Perl and facing the above mentioned problem. The Perl is 5.8.8 and system is AIX with no root access.
Code
./p_t.pl
Error
Unable to load HMAC_SHA1 plugin at
/vv/mm/tt/perl5/lib/perl5/Net/Twitter/Lite.pm line 192
Hwoever
cpan Digest::HMAC_SHA1
is running fine.
O/P
Digest::HMAC_SHA1 is up to date (1.03).
and SHA1 is not running properly
cpan
force install Digest::SHA1
Running make test Can't test without successful make Running make
install Make had returned bad status, install seems impossible
Failed during this command: GAAS/Digest-SHA1-2.13.tar.gz
: make NO
I realize this is an ancient post, but it's high on google, so this advice may eventually reach someone who can use it.
I was fighting with a similar issue, and it turned out my perl distribution did not include integer.pm (part of the distro) and I fixed said bug.
To check if this, or something similar, causes problems in your case, run this script:
#!/usr/bin/env perl
use Digest::HMAC_SHA1;
And check what it fails on.