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?
Related
I'm trying to use Google's reCaptcha v2 system with a Perl script. I can find information on how to use the modules in places like
Captcha::reCAPTCHA
and
Captcha::reCAPTCHA::V2
but the instructions on how to install the module are confusing.
I have cpan installed but I don't know the proper command to download and install the module. I'm running CentOS 7.
Can anybody walk me through what I need to do to get these libraries on my system?
Are these the same module/library?
installing cpan:
yum install cpan
Looks like this is the command that worked:
cpan Captcha::reCAPTCHA::V2
I've got perlbrew installed on OS X fine, and can install Perl modules from CPAN, using 'cpanm' no problem.
But, now I'm attempting to install a Perl module provided from a software vendor, and that PM is not on CPAN - you download it from their application and install it "locally".
I'm not sure how to accomplish this with perlbrew ?
The documentation states to do a direct install, download the tar.gz file, extract it, then:
cd Infoblox-xxxxxxx/
perl Makefile.PL
make
make install
But if I do this, I guess it will install it for the OS Perl version, not my perlbrew install.
The other option mentioned is to create a local CPAN site and add the appliance URL (to grab the Perl module) to the list of sites. Is this possible with perlbrew ?
Thanks !
cd Infoblox-xxxxxxx/
perl Makefile.PL
make
make install
But if I do this, I guess it will install it for the OS Perl version, not my perlbrew install.
If you are using perlbrew to select your perl, it should install in the appropriate location for the perl you selected.
which perl will tell you which perl you are using.
If you want to use a specific perl without leaving things to perlbrew, you can always invoke the specific perl you want using its full path:
cd Infoblox-xxxxxxx/
~/perl5/.../bin/perl Makefile.PL
make
make install
I keep getting error messages when trying to install the Date::Manip module. Any Perl experts know what I can try?
The command I'm trying is
perl -MCPAN -e "install Date::Manip"
Perl version is 5.20 and the version of the Date::Manip it keeps trying to install is 6.45, but it comes back with "Make had some problems" and "No such file in archive". It does prompt me to manually install the file, but i have no clue on how to do that. Here's what it says...
Could not find file 'sulbeck#heather.osg.ufl.edu.2024:1399465428' in memory at C:\Strawberry\perl\lib/CPAN/Tarzip.pm line 408.
Making symbolic link 'C:\STRAWB~1\cpan\build\tmp-3576\Date-Manip6.45\lib\Date\Manip\.#Changes6.pod' to 'sulbeck#heather.osg.ufl.edu.2024:1399465428' failed at C:\Strawberry\perl\lib/CPAN/Tarzip.pm line 408.
Could not untar with Archive::Tar SBECK/Date-Manip-6.45.tar.gz
Had problems unarchiving. please build manually. Stopping: 'install' failed for 'Date:Manip
I had exactly the same problem today.
I've been able to get 6.44 installed by doing the following from within the cpan cli (you can access this by simply typing cpan in your terminal).
The developer for Date::Manip has archived previous versions of the module, you'll need to add the backpan URL into your cpan config so you can search for it.
o conf urllist push http://backpan.perl.org/
Now you should be able to install using a direct path to version 6.44
install SBECK/Date-Manip-6.44.tar.gz
I had to accept that the checksum wasn't present in the package, but after that the module seemed to install correctly.
I suspect you'll want to keep an eye on the module and this bug report so that you can upgrade once it has been fixed.
perl -MCPAN -e "install 'SBECK/Date-Manip-6.44.tar.gz'"
or wait until the distribution is fixed. '.#Changes6.pod' is an illegal filename for your tar.
Can you tell me where to find a guide on how to install a perl module?
I am trying to install the perl module:
http://metacpan.org/pod/WWW::Mechanize::Firefox::Installation
I am stuck at step 7. I am not sure where the problem lays exactly, although I can get mozrepl to appear under tools. All I know is that when I run use WWW::Mechanize::Firefox; I get the following type of result:
Cannot locate www/mechanize/firefox.pmin #INC<#INC contain:
C:/Perl/site/lib C:/Perl/lib
In the directory in which I have perl, if I type ppm install WWW-Mechanize-Firefox I get
"ppm install filed: Can't find any package that provide
WWW-Mechanize-Firefox"
I use Windows XP.
I would appreciate any help. Thank you!
Based on this error:
Cannot locate www/mechanize/firefox.pmin #INC<#INC contain: C:/Perl/site/lib C:/Perl/lib
You need to install the module.
If you are using Strawberry Perl for instance, you should be able to simply:
cpan WWW::Mechanize::Firefox
I believe ActiveState supports the above, as well as ppm install WWW::Mechanize::Firefox
EDIT: ActiveState's Instructions
EDIT:
During the install, some of the tests failed. I then went ahead and followed the steps you linked to. At that point I went back and ran the tests using:
cpan -t WWW::Mechanize::Firefox
The tests open and close various windows in FF.
I've used this in anger only under Linux.
The problem (back then) was that the WWW modules didn't include hard dependencies for the MozRepl modules, hence the manual install.
My own instructions (from about 3 years ago)
cpan WWW::Mechanize::Firefox
cpan MozRepl
cpan MozRepl::RemoteObject
However, if it worked for Craig then it might be all ok now.
I have had trouble with IPC-Run in 64-bit Active Perl. ActiveState says it doesn't work. But I find it not necessary for basic uses of WWW::Mechanize::Firefox. If you install App::cpanminus, and in run cpanm -n WWW::Mechanize::Firefox I find that it pushes through the install of IPC-Run and you can go ahead using mechanize firefox in 64-bit windows instantiations.
Hope this helps someone!
-lta
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.