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
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 am a windows 7 (64 bit) user. I was trying to install Class::Inspector module in Perl. However it requred Nmake15.exe. I have tried to download the exe and when I run it, there is an pop up message stating that
The program or feature Nmake15.exe cannot start or run due to incompatibility with 64-bit versions of Windows
Could anyone advice on this? Thanks. This is a pre-requisite module required by SOAP::Lite.
nmake 1.5 is very old, and getting a modern version involves installing the massive Visual Studio suite. As an alternative, you can use dmake which works just as well.
In addition, your version of ActivePerl is quite out of date. I believe more recent versions now ship with a make program and will run much better on Windows.
Finally, Strawberry Perl is in many ways a better distribution of Perl on Windows. It comes with a complete Perl module build toolchain including dmake and a C compiler. You should be able to install most modules on CPAN using its preconfigured CPAN shell.
Class::Inspector is a pure-Perl module. Therefore, you could easily install it by copying the contents of the lib/ directory into one of your #INC paths.
This does not solve your problem with installing modules in general, though. That's why you should install a 64 bit version of nmake. By installing the Windows SDK, the nmake utility will be available at "C:\Program Files (x86)\Microsoft Visual Studio...\VC\bin\amd64\nmake.exe" (microsoft.com).
At first,I tried to use ppm and cpanm to install Tk module.But failed to download whth the reason which i don't konw(yet i can install image module) .So I tried another way.I downloaded the Tk-804.030 from the cpan website.And unpacked it.Then I type "perl makefile.pl" in the cmd, howerver, shit happens.There were so many errors.And i remenbered to read the README.txt, so i found the following which make me frustrated.
When you install ActivePerl, it provides patched C runtime as PerlCRT.dll
which it installs in the "system32" directory.
This needs "administrator" rights on NT.
It also provides the import library PerlCRT.lib, but this is installed
in an odd location e.g. C:\ActivePerl\lib\CORE\PerlCRT.lib
where it is not found by MakeMaker or VC++.I copied it to C:\VisualStudio\VC98\lib\PerlCRT.lib
(Your paths may vary dependinh where you installed ActivePerl and VC++.)
I could not find the PerlCRT.dll and PerlCRT.lib in my computer, i googled and found PerlCRT.dll which could be downloaded, but i counld find PerlCRT.lib to download.i don't kown how to do it, i really need some help.It couldn't be better if you can tell me the whole installing procedure. ( I'm new to Perl, and I use Win7, visual studio 2012 and MinGW as well)
See PPM Tk info page, the distro fails to build on the current versions of ActiveState Perl for Windows. You can add the 3rd party Bribes repository, Tk is available there.
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.
I need to download ActivePerl PPM .zips or .ppd's so I can install the MongoDB perl driver on machines that do not have an internet connection. The problem is that all of the links I find in documentation don't point anywhere that lets me download .zip's or .ppd's. They just point me to more documentation that tells me about the modules. I think ActivePerl might have changed their site.
Does anyone know where I can download these?
I've had no problems downloading and installing with the PPM tool on machines that do have an internet connection. Also, this is a possible solution, but I can't use CPAN (I've already created a minicpan and the MongoDB CPAN module only works with strawberry perl - I can't compile it with MSVC with cpan or manually).
MongoDB 0.42 for ActivePerl 5.10 and
ActivePerl 5.12.
To find those URLs, I just looked through the packages.xml file from the 5.10 and 5.12 repository pages.