Unable to install Params::Validate - perl

I am trying to install Params::Validate on perl 5.10.0.
Executing cpan install Params::Validate will give me the error:
can't locate object method "object_file" via package "ExtUtils::CBuilder" at /usr/lib/perl5/5.10.0/lib/5.10.0/Module/Build/Base.pm line 3935.
What is this error and how can I install Params::Validate?

I was able to install the module. It seems like the perl version 5.10.0 didnt have a Module::Build up to date.
Installing the latest version of the module fixed my issue. Hope this helps somebody that meets the same issue.

Related

ppm.bat install failed: Can't find any package that provides GD-Graph3d

Getting an exception while installing Perl package through below command. Running Perl 5.26 on Windows 10.
ppm install GD-Graph3d
ppm.bat install failed: Can't find any package that provides GD-Graph3d
The ActiveState build for GD::Graph3d fails since Perl 5.24. See also the patch that ActiveState try to apply. Maybe you can install the module by using the cpan tool instead?
cpan GD::Graph3d

Bugzilla 5.0.4 doesn't recognize Apache2::SizeLimit 0.97

I'm upgrading Bugzilla from 4.2.1 to 5.0.4 on Centos 6.9
The 'checksetup.pl' says I'm missing optional module Apache2::SizeLimit v 0.96, but when I do:
/usr/bin/perl install-module.pl Apache2::SizeLimit
It tells me
Installing Apache2::SizeLimit version 0.96...
Apache2::SizeLimit is up to date (0.97).
So, it seems checksetup.pl doesn't recognise that 0.97 is already installed.
It doesn't seem like theres an easy process to downgrade this module. Is there another way to resolve this?
The problem stems from the module existing in two distributions: mod_perl2 and Apache-SizeLimit. Qualify the distro name to resolve to the dist with the higher version number:
cpan PHRED/Apache-SizeLimit-0.97.tar.gz
cpanm PHRED/Apache-SizeLimit-0.97.tar.gz
Unfortunately, …/perl install-module.pl is not able to resolve a qualified name, so you need to use cpan or cpanm or the like.
Please report these bugs at bugzilla.
Bugzilla project admin here. install-module.pl is hot garbage, but the real issue here is that you can't really (easily) get a working mod_perl installed from cpan.
The correct-ish thing at the moment is use the distro's package manager to install mod_perl.
I found answers with the help of a Bugzilla dev, I needed to do
curl -L https://cpanmin.us > /usr/local/bin/cpanm
chmod 755 /usr/local/bin/cpanm
to install cpanm, then
cpanm --installdeps --notest --with-recommends .
yum install mod_perl-devel
cpanm --notest Apache2::SizeLimit
after which ./checksetup resolved the 0.96 version of SizeLimit

can't find any package that provides Email-Sender

While installing Perl Packages for bugzilla it is giving error as..
Command:ppm install Email-Sender
Error:ppm install failed:can't find any package that provides Email-Sender
Maybe you should try to do it from within CPAN?
cpan > install Mail::Sender

Installing Perl with Perlbrew

I am trying to install Perl version 5.19.2 or version 5.19.8 with perlbrew. I am using the following command to install:
perlbrew -v install perl-5.19.8 (or 5.19.2) -Dcc=gcc
Everytime no matter what version I am trying to install I keep getting the following error:
FatPacker error loading Devel/PatchPerl.pm (could be a perl installation issue?) at /Path/to/my/perl/bin/patchperl line 33687
I am not sure whats going on. I am not very experienced in Perl. If anyone can offer me some tips/help that will be great.
Thanks

Perl Install PAR:Packer Problems

My perl version is 5.16.2 on my Windows 7 64bit, I failed to install PAR:Packer. I tried active perl and strawberry perl , both got the same error. Can you please give me some suggestion. Below is my experience:
I tried ppm install PAR:Packer, version 1.013, But when I use pp, I got the error:
Perl lib version (5.16.2) doesn't match executable version (v5.16.0).
I also tried cpan install PAR:Packer, version 1.014. But I got the error during installation. The pop up window says: par.exe has stopped working. Then command prompt got the error:
C:\Perl64\bin\perl.exe -Mblib run_with_inc.pl par.exe -q -B -Oparldyn.exe
system(par.exe -I C:\Users\PAR-Packer-1.014\blib\arch -I C:\Users\PAR-Packer-1.014\blib\lib - IC:/Perl64/site/lib -IC:/Perl64/lib -I. -q -B -Oparldyn.exe) failed:
dmake.exe: Error code 255, while making 'parldyn.exe'
dmake.exe: Error code 255, while making 'subdirs'
I have googled extensively, but as of yet haven't been able to find a solution, any help is greatly appreciated, thanks a lot!
I simply changed the line 60 in .../perl64/Config.pm from
`$^V eq 5.16.3`
to
`$^V eq 5.16.3 or $^V eq 5.16.0`
and voila! My par-packer module 1.013 installed through ppm (ActiveState Perl 5.16.3) works ...
I'll start off with my own environment:
Windows 7 x64 en_US
Strawberry Perl v5.16.2 32bit
I just confirmed that I do have PAR::Packer working on my environment. I'm running PAR::Packer version 1.014.
There is a bug logged about PAR::Packer 1.013 failing to build on certain environments. The bug is logged on CPAN here: https://rt.cpan.org/Public/Bug/Display.html?id=77408
I recommend trying one of the following paths forward (based on your build version requirements):
Install PAR::Packer 1.0.14.
Install the patched version of PAR::Packer 1.013 that is available at http://strawberryperl.com/package/kmx/perl-modules-patched/PAR-Packer-1.013_patched.tar.gz
To build you will need any dependencies as well. Hopefully those work just fine through CPAN.
Download either the patched version listed above or the latest version from the CPAN site, then execute:
perl Makefile.pl
dmake
dmake test
dmake install
Keep in mind PAR::Packer requires a C/C++ compiler to build.
I ran into this exact same error scenario with Perl 5.16.3 on my Windows 7 64 bit machine. I started my Perl tinkering with ActiveState and later installed other related programs like Komodo Edit and finally installed StrawberryPerl. After reading quite a few of these online posts I tried the manual dmake methods and whatever other suggestions I could find. I then tried uninstalling ActiveState. That didn't help either. Finally, I went on an uninstall binge and found that after uninstalling all of the ActiveState and Komodo applications (along with a bunch of other stuff I wasn't using anymore) I was able to successfully install and use pp in two simple steps from the cpan prompt:
install CPAN
install pp
I was going to uninstall and re-install StrawberryPerl next but didn't have to. The install CPAN may not be necessary but it was suggested in the log output in one of my previously failed attempts so I figured I'd try that first. Hope this saves someone all the hassle I went to as a begginer.