How can I install 0.12 version of a module if cpan has 0.13 version of module ? [duplicate] - cpan

This question already has answers here:
How can I install a specific version of a set of Perl modules?
(6 answers)
Closed 9 years ago.
I want to install module XML::XpathEngine of version 0.12 . But cpan has XML::XpathEngine 0.13 version.
How can I install XML::XpathEngine 0.12 version ?

You only need to ask for it :
cpanm MIROD/XML-XPathEngine-0.12.tar.gz
It will install the version you need. To find the exact path to the version you want, go to the clan website, search for the version in the left side of the page and turn to this version. You should find the "download" link that can be truncated from the PAUSE is to the archive extension and used as a parameter with your favorite cpan client.

Related

How to fix "Can't locate Archive/Tar.pm" [duplicate]

This question already has answers here:
What's the easiest way to install a missing Perl module?
(24 answers)
Closed 5 years ago.
I'm trying update a software and when I running for make update I've a issue:
Can't locate Archive/Tar.pm in #INC (#INC contains: ...)
How I can fix this?
Archive::Tar has been bundled with Perl since Perl 5.10, so unless you are using an ancient version of Perl, you have a partial or corrupted install of Perl.
Some Linux distributions (e.g. Redhat) gut out lesser-used parts of Perl and provide them in an package (e.g. perl-core) that can be installed using the OS distribution's package manager.
Alternatively, Archive::Tar is available for install separately from Perl —it is "dual-lived"— so you can install it from CPAN.

Can I have the newest version of perl together with olde

I have on UNIX SunOS 5.9 Generic_122300-61 sun4u sparc SUNW,Sun-Fire-V240 perl v5.6.1, but I want to install the newest version.
Can I install the newest version and have it together with oldest but on different directories?
But my questions is :
now I have perl home on /bin/perl.
The newest perl version will be on different home directory? And also cpan and modules, are they going to be installed?
Since you are on Solaris, don't mess with the Perl that comes with the operating system. It's used by the OS itself, and if you change it things can get weird.
That said, you can absolutely install other Perl versions in parallel with it. If you're compiling manually, all you need to do is to give the flag -Dprefix=/some/nice/directory to the Configure script. Once it's compiled and installed, you only need to put /some/nice/directory/bin earlier in your PATH than /usr/bin.
If you want a system-wide installation of a newer Perl, I'd suggest picking the latest version (currently 5.20.0, but 5.20.1 is at RC2 so it should be out soon) and installing it in /usr/local. If you want a newer Perl for your own personal use, I'd strongly suggest making sure you have enough of an environment that Perl can be compiled, and then install and use perlbrew (http://perlbrew.pl/).

How to install CPAN modules on mageia 4 [duplicate]

This question already has answers here:
What's the easiest way to install a missing Perl module?
(24 answers)
Closed 8 years ago.
How to install CPAN modules on mageia 4? I am struggling to find out to achieve this.
any help is appreciated..
First you probably don't need to, just install the package.
For example perl-WWW-Mechanize is the one for WWW::Mechanize.
You should use rpmdrake or urpmi to find the package providing the module you want.
$ urpmf --provides --literal 'perl(WWW::Mechanize)'
perl-WWW-Mechanize:perl(WWW::Mechanize)[== 1.730.0]
If you want to be able to use the cpan command, you need to install perl-devel package.

Why can't I install the Perl PAR::Packer module? [duplicate]

This question already has answers here:
How to install pp (PAR Packager)?
(6 answers)
Closed 8 years ago.
I am trying to convert my perl scripts into executable files for Windows. The executable file should include all modules, too.
I am trying to install PAR Packer using ppm but I get an error message :
"ppm install failed: Can't find any package that provides PAR::Packer"
code:
ppm install PAR::Packer
How to make pp work which is present in PAR::Packer?
Else, is there any other module / free software to convert Perl to exe?
It looks to me that there is no PPM package for PAR::Packer.
You're using ActivePerl which makes its own PPM packages which are a subset of the full range of CPAN modules available.
See this answer for more: How to install pp (PAR Packager)?
I found that using CPAN alone was not enough to get PAR::Packer installed on my version of Perl (Perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread) on Windows 7. To get the module installed I first had to install Win32::Exe via the ActiveState PPM, then switch and install the PAR::Packer module with CPAN.

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.