cpan

Error while Installing Math::Pari

对着背影说爱祢 提交于 2019-12-11 13:18:59
问题 I'm trying to install Math::Pari module but getting error. I'm installing on Windows Server 2012R2, I've Strawberry perl v5.18.4.1 32-bit currently installed on it. Actually Math::Pari is dependency for Net::SSH::W32Perl and I want to install that module. Following is the error log. Please Give me step by step installation procedure. cpanm (App::cpanminus) 1.7039 on perl 5.018004 built for MSWin32-x64-multi-thread Work directory is C:\Users\script/.cpanm/work/1438929213.2276 You have make C:

How do I install the latest BioPerl version when using perlbrew?

烂漫一生 提交于 2019-12-11 11:45:40
问题 I'm using perlbrew and I would like to install the latest bioperl version. Should I use cpanm or git ? If git - do I just install as usual (AKA git clone ... then make and build), or should I do anything special? UPDATE Specifically, I'm not sure I understand the following expert from BioPerl Using Git manual: Tell perl where to find BioPerl (assuming you checked out the code in $HOME/src; set this in your .bash_profile, .profile, or .cshrc): bash: $ export PERL5LIB="$HOME/src/bioperl-live:

perl script for user interaction

大憨熊 提交于 2019-12-11 11:35:42
问题 I'm new to programming. I have written a perl script which does the following. 1) ssh into a remote machine 2) execute a sequence of commands. The script requires user interaction in between.It needs user name and password. I'm not sure how to proceed with that. use Net::SSH::Expect; use strict; use warnings; #login to a remote host my $ssh = Net::SSH::Expect->new (host => "ipaddr", password=> 'pwd', user => 'username', raw_pty => 1); my $login_output = $ssh->login(); The login is successful.

Perl WWW::Mechanize methods not working in AIX

旧时模样 提交于 2019-12-11 08:09:11
问题 I have a simple requirement of screen scraping a web-page (simple URL based reports) and direct the HTML response to an output file. The URL will however redirect to an authentication (HTTPS Login) page with "form based" authentication (no javascript) and upon authentication the report I am trying to view should show up in the $response (as HTML). Interestingly, my code is working just fine in a Windows machine, however the same code below is not working in AIX machine and it looks like the

Reverse Geocoding using Perl and Google Maps API

北城以北 提交于 2019-12-11 04:29:45
问题 A Perl module exists in order to interface with the Google Maps API. The code is as follows: use Geo::Coder::Google; $geocoder = Geo::Coder::Google->new(); @location = $geocoder->geocode(location => '1600 Pennsylvania Ave. Washington DC USA'); Site Source: http://search.cpan.org/~arcanez/Geo-Coder-Google-0.11/lib/Geo/Coder/Google/V2.pm However I need to go from coordinates to address. How is that done even if that means using a different means in PERL? Please be advised that I tried the

How do I fix “`as_number' is not a Pari function name” in Math::Pari called by Math::BigInt?

和自甴很熟 提交于 2019-12-11 03:37:48
问题 On Perl 5.8.5 I am seeing the error listed in the question. I am running these version modules: Math::BigInt: 1.89 Math::BigInt::FastCalc: 0.19 Math::BigInt::GMP: 1.24 Math::BigInt::Pari: 1.13 Math::BigRat: 0.22 bignum: 0.22 The module producing the error is Math::Pari. This is all in an attempt to get Net::SFTP working to put a file on a remote host. Thanks for any insight, oh CPAN gurus. :) Thanks, nothingmuch, I tried those things but when I remove Math::Pari, Net::SSH::Perl::Util::SSH2MP

CPAN giving all sorts of errors on ubuntu

一曲冷凌霜 提交于 2019-12-11 03:28:09
问题 I am just trying to run a simple perl program to import data from xml and export it to database. Use Mysql; did not work, so I used DBD::mysql instead after failing to get Mysql.pm from cpan. However, I am unable to install anything. I am trying to install xml parser module, but cpan gives these errors no matter what module you try to install. install xml::parser CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.02)

Upload file that is in the cpan database

随声附和 提交于 2019-12-11 03:19:28
问题 I have a small module on CPAN - http://search.cpan.org/~bessarabv/. I made a mistake and at first uploaded file SQL-Easy-0.04.tar.gz and only then SQL-Easy-0.03.tar.gz After that CPAN thought that the 0.03 is the latest version of the module. To fix this problem I've requested the deletion of the 0.04. 0.04 was deleted and the 0.03 became the latest version. Now I'm uploading file SQL-Easy-0.04.tar.gz to cpan, but I get the error when I try to upload It: Submitting query Could not enter the

how do I install perl modules on macos?

为君一笑 提交于 2019-12-11 02:21:51
问题 The thread perl how can I append STDOUT of list form system call of perl script to a file led to the following solution: use IPC::Run qw( run ); . On my macos 10.14.6 running perl 5.18.4, this threw an error: Can't locate IPC/Run.pm in @INC (you may need to install the IPC::Run module) . Accordingly, following What's the easiest way to install a missing Perl module?, I did > cpan IPC::Run <snip: 403 lines later> Appending installation info to /Users/BNW/perl5/lib/perl5/darwin-thread-multi

cpan command gives the error “Can't locate B.pm in @INC”

大兔子大兔子 提交于 2019-12-11 01:26:14
问题 I wanted to use CPAN to install some Perl packages, but I get the following error when I try to start the CPAN shell: paulzierep@naproxen:~$ cpan Can't locate B.pm in @INC (you may need to install the B module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /home