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

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.

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.

How to install a missing Perl module (Net/SFTP.pm)?

I am trying to install some missing Perl modules because when I run my Perl script I am getting the error:
Can't locate Net/SFTP.pm in #INC (you may need to install the Net::SFTP module)
The first step I have taken to install this is:
I have brought up CPAN in CMD and run the command cpan> install foo but no luck because after I run the command I am getting:
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
I am on a proxy so I am wondering if there is a way round the proxy?
Another step I have taken is that I have installed strawberry Perl from http://strawberryperl.com/ but still no luck.
Lastly, I have the file 01mailrc.txt.gz locally install in my download folder but not sure how to install it.
FYI: I am on Windows. I have not used Perl before. The Perl version I use is:
This is Perl 5, version 26, subversion 1 (v5.26.1) built for MSWin32-x64-multi-thread
Could someone help me on this or show me a way around on how to install it?

Installing Net::SFTP and Net::SSH2 without CPAN

I am making a Perl script to fetch files from a Unix Server using SFTP. I want to search the file using Regex and then download it to my system folder. I am using ActivePerl and Windows 64 bit environment. I looked on various posts which suggested the best way is using Net::SFTP::Foreign::Backend::Net_SSH2 but I am facing lots of errors while installing Net::SFTP and Net::SSH2.I cannot CPAN from my system and tried with GCC and dmake. Net::SFTP is halting at Math::Pari and Net::SSH2 is asking for libraries libssh2. I downloaded libssh2 from here but not able to install it.
Also can I use any 3-d part OS tools like psftp through Perl to server my requirements.
1. Net::SSH2 is not in offical PPM repositories. Install it using below:
ppm install http://www.sisyphusion.tk/ppm/Net-SSH2.ppd
Tested on Windows 7 and Perl 5.18.4
2. For Math::Pari check this answer Unable to install Math::Pari module

How to install DFA::Simple or DFA::Command Perl module in my active perl for windows XP

i am using active perl 5.12 for 32 bit windows XP laptop.i want to install DFA::Simple or DFA::Command module to create a finite state machine.i tried installing from ppm repositories using ppm install [ppmx file] but it didn't install properly.please suggest me any other method which would be better to insrall or any other perl module which can be used to crate a simple state machine.
Download it. Then do from command prompt:
perl Makefile.pl.
dmake test
dmake install
DFA::Simple module was deleted from CPAN, but you should be able to find it on backpan.
P.S. You can download dmake on CPAN. You may use nmake instead of dmake.
DFA::Simple is on github at https://github.com/gitpan/DFA-Simple.

How do I install a Perl module that's on Sourceforge and not CPAN using ActiveState?

Trying to install Ptkdb on Windows 7 with Perl 5.12.2 (ActiveState) β€” how do I do this?
ptkdb is available on CPAN. It's also available for Perl 5.12 in the bribes repository:
ppm install http://www.bribes.org/perl/ppm/Devel-ptkdb.ppd
For pure Perl modules, all you need to do is run the Makefile.PL that comes with the module. If the module is a mix of Perl and C, you will need to get a C/C++ compiler for Windows that works with your distribution of Perl. I would recommend asking around for a Windows binary first if it's a mixed module.