ActivePerl ppm issue on Windows 7, installed modules cannot be verified - perl

My ppm was working a few days ago when I installed a number of email related modules, it installs and verifies every module just fine. But now it has an issue, let me give you an example:
ppm install email::simple
No missing packages to install
ppm verify email::simple
ppm verify failed: Package 'email::simple' is not installed
I tested with a script I wrote that uses this module and it compile and runs just fine. However, it didn't work out for another module I installed later.
ppm install email::received
No missing packages to install
ppm verify email::received
ppm verify failed: Package 'email::received' is not installed
perl test.pl "FILE"
Can't locate Eamil/Received.pm in #INC (#INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at test.pl line 17.
BEGIN failed--compilation aborted at test.pl line 17.
I verified myself that the file received.pm was installed under Perl64/site/lib/email/. Why is compiler not recognizing this module?
PS: I can also see the email::received module was installed with the GUI ppm. I tried re-installing ActivePerl but the problem persists

Can't locate Eamil/...
"Eamil" should be "Email". Fix your incorrect use statement.
As for your inability to verify installs, verify expects ppm verify Email-Received.

Related

While running an email program on Windows ActivePerl I'm getting an error

I'm using the Email::Stuffer module for sending a text message through an email in ActivePerl on Windows. This the code I'm running:
use strict;
use warnings;
use Email::Stuffer;
my $text = <<"END";
This is the email generated by Perl.
END
Email::Stuffer
->text_body($text)
->subject('Perl Email')
->from('abc#gmail.com>')
->to('xyz#gmail)
->send;
I'm getting error like this:
Can't locate Email/Stuffer.pm in #INC (you may need to install the Email::Stuffer module) (#INC contains: C:/Perl/site/lib C:/Perl/lib) at D:\Ekanvith
a\perl\email.pl line 4.
BEGIN failed--compilation aborted at D:\Ekanvitha\perl\email.pl line 4.
Email::Stuffer is not part of the standard Perl distribution. You need to install it before you can use it.
It's possible that it's available for installation in the ActivePerl package repository so you can install it using ppm. However, I would recommend using Strawberry Perl instead which would allow you to install CPAN modules using the standard tools.

Can't install PP/PAR module in perl

I tried all the following ways to install PP via PPM on Windows. But unable to install it.
ppm install pp
Error: Installing package 'pp'...
Error: installing package 'pp': Could not locate a PPD file for package pp
Kindly someone help to install, I have to create exe file from .pl file.
ActiveState doesn't come with a sensible build environment, you have to install it:
ppm install MinGW
Once completed install pp:
cpanm pp
Or to save your time/sanity use Strawberry Perl over ActiveState, since it comes with a sensible build environment out of the box.

Bugzilla 5.0 install on OpenShift - Can't locate parent.pm in #INC

Attempting to install Bugzilla on an OpenShift small gear. Using SSH to wget 5.0 tarball, untar-ing and running the checksetup.pl --check-modules script gives me this error:
Can't locate parent.pm in #INC (INC contains: . lib /var/openshift/[app-id]/app-root
/runtime/repo/libs /var/lib/openshift/[app-id]/perl/perl5lib/lib/perl5 /usr/local/lib64
/perl5 /usr/local/share/perl5 /usr/lib/lib64/perl5/vendor-perl /usr/share/perl5/vendor-perl
/usr/lib64/perl5 usr/share/perl5) at Bugzilla/Constants.pm line 14.
BEGIN failed--compilation aborted at Bugzilla/Constants.pm line 14.
Compilation failed in require at ./checksetup.pl line 27.
BEGIN failed--compilation aborted at ./checksetup.pl line 27.
Line 14 of Bugzilla/Constants.pm: `use parent qw(Exporter);`
Line 27 of ./checksetup.pl: `use Bugzilla::Constants;`
[app-id] in the paths is just a random string of hex digits used to identify an OpenShift application.
All help would be greatly appreciated. Thanks in advance!
That means either parent is not installed in your system or it's not a part of #INC.
Try perldoc -l parent to see if it's installed or not.
If it's installed then update PERL5LIB enviroment variable to add path to directory where module is installed.
If it's not installed then run cpan parent to install.
Also see:
How do I 'use' a Perl module in a directory not in #INC?
How to change #INC to find Perl modules in non-standard locations
Apparantly OpenShift has a cpan.txt file in the .openshift folder. Adding parent to that folder installed the required module.
#please install above packages:
[root#rsync ~]# yum install perl-parent -y

How to install Padre on ActivePerl 5.16.2?

I need to install Padre on ActivePerl 5.16.2. But there are no Padre ppm packages and
cpan Padre says:
MDOOTSON/Alien-wxWidgets-0.64.tar.gz
C:\Perl\site\bin\dmake.exe -- NOT OK
CPAN: YAML::XS loaded ok (v0.38)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running make for P/PL/PLAVEN/Padre-0.98.tar.gz
Warning: Prerequisite 'Alien::wxWidgets => 0.62' for 'PLAVEN/Padre-0.98.tar.gz' failed when processing 'MDOOTSON/Alien-wxWidgets-0.64.tar
CPAN: Time::HiRes loaded ok (v1.9725)
CPAN.pm: Building P/PL/PLAVEN/Padre-0.98.tar.gz
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Can't locate Alien/wxWidgets.pm in #INC (#INC contains: inc privinc C:\Perl\dbg C:/Perl/site/lib C:/Perl/lib .) at Makefile.PL line 52.
BEGIN failed--compilation aborted at Makefile.PL line 52.
Warning: No success on command[C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site]
PLAVEN/Padre-0.98.tar.gz
C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
tl;dr Padre for ActivePerl 5.16 has not been released yet.
The following contents are just me trying to make it work.
First I tried:
cpan Padre
I did this three times, but "dmake.exe" always failed.
There was no reference about this error on the Internet.
Secondly I tried PPM with an article in Padre Wiki:
ppm rep add wxperl http://www.wxperl.co.uk/repository
ppm install Alien-wxWidgets
ppm install Wx
ppm install Padre
but the very last line claimed:
ppm install failed: Can't find any package that provides Padre
Finally I couldn't help talking to the Padre developers:
So, apparently we have nothing to do but wait for them to develop it.
Or you can participate to the development, of course!
This post should help: Installation instructions for Wx (wxWidgets fomerly wxWindows) using ActivePerl

Installing XML::LibXML Perl module for ActiveState Perl Version 5.6.1 build 629

How can I install XML::LibXML Perl module on ActiveState Perl Version 5.6.1 build 629?
Here what I tried:
D:\Users\abc>ppm install XML::LibXML
Installing package 'XML-LibXML'...
Error installing package 'XML-LibXML': Could not locate a PPD file for package XML-LibXML
And other way:
D:\Users\abc\Downloads\XML-LibXML-2.0014\XML-LibXML-2.0014>perl Makefile.PL
Couldn't find your C compiler
Compilation failed in require at Makefile.PL line 83.
BEGIN failed--compilation aborted at Makefile.PL line 83.
Maybe your ppm package manager is not able to find a correct package to your perl version.
You could try to find and install like one this. Maybe one of them works for you.
ppm install http://www.bribes.org/perl/ppm/XML-LibXML.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/XML-LibXML.ppd
ppm install http://trouchelle.com/ppm/XML-LibXML.ppd
ppm install http://ppm.tcool.org/archives/XML-LibXML.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/XML-LibXML.ppd
Howto add a new repo too ppm: http://www.bribes.org/perl/ppmdir.html
I installed the CPAN version of PPM on my machine;
Downloaded the PPM-2.1.8.tar.gz source, extracted the files, made cd into the unpacked directory, and run
perl Makefile.PL
nmake
nmake install
But the nmake was not installed on my machine so I installed it.
After this, I able to install XML-LibXML from the uwinnipeg 5.6 repository by issuing the command
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/XML-LibXML.ppd
It also installed the prerequisite ppm packages, as well as the required libxml2.dll library in the environment variable PATH.