[Catalyst] how to install Math::pari module in windows and unix

Veerendranadh.Ch at in.standardchartered.com Veerendranadh.Ch at in.standardchartered.com
Tue Jun 27 08:54:43 CEST 2006


While iam running this program    in windows

#! /usr/bin/perl
BEGIN {
     push @INC, 'E:\perl\site\lib';
}
use Net::SSH::Perl;
my $ssh = Net::SSH::Perl->new("$host");
$ssh->login('$user','$password');
my($stdout, $stderr, $exit) = $ssh->cmd("ls");
print "Output : $stdout\n";
print "Error : $stderr\n";
print  "Exit:  $exit";
$ssh->close;


I got these errors


Can't locate loadable object for module Math::Pari in @INC (@INC contains: E:\PERL\LIB E:/perl/lib E:/perl/site/lib . E:\perl\si
te\lib) at E:/perl/site/lib/Net/SSH/Perl/Util/SSH2MP.pm line 6
Compilation failed in require at E:/perl/site/lib/Net/SSH/Perl/Util/SSH2MP.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at E:/perl/site/lib/Net/SSH/Perl/Util/SSH2MP.pm line 6, <GEN0> line 1.
Compilation failed in require at E:/perl/site/lib/Net/SSH/Perl/Util.pm line 56, <GEN0> line 1.
BEGIN failed--compilation aborted at E:/perl/site/lib/Net/SSH/Perl/Kex/DH1.pm line 10, <GEN0> line 1.
Compilation failed in require at E:/perl/site/lib/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at E:/perl/site/lib/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.
Compilation failed in require at E:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at E:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
Compilation failed in require at E:/perl/site/lib/Net/SSH/Perl.pm line 51, <GEN0> line 1.


even though i  start install  Math::Pari  i got some more error


C:\Documents and Settings\Administrator\Desktop\Math-Pari-2.010706>perl Makefile.PL
Did not find GP/PARI build directory around.
Do you want to me to fetch GP/PARI automatically?
  (If you do not, you will need to fetch it manually, and/or direct me to
   the directory with GP/PARI source via the command-line option paridir=/dir)
Make sure you have a large scrollback buffer to see the messages.
Fetch? (y/n, press Enter) y
Getting GP/PARI from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/
Cannot create FTP object: Invalid argument at utils/Math/PariBuild.pm line 205, <STDIN> line 1.

Can't fetch file with Net::FTP, now trying with LWP::UserAgent...
Can't fetch directory listing from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/: 500 (Internal Server Error) LWP::Protocol
FTP: Bad hostname 'megrez.math.u-bordeaux.fr'
Client-Date: Mon, 12 Jun 2006 06:52:10 GMT




i installed gp/pari in my windows machine
(pari.2-3-0.exe in windows machine)

C:\Documents and Settings\Administrator\Desktop\Math-Pari-2.010706>perl Makefile.PL paridir=E:\perl\site\lib\PARI
Setting up Math::Pari with Perl 5.006001 on MSWin32 version 4.0;
   cc=cl, gccversion=, ccflags='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTE
XT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX',
   ld=link, ldflags='-nologo -nodefaultlib -release  -libpath:"E:/Perl\lib\CORE"  -machine:x86', optimize='-O1 -MD -DNDEBUG'.
Could not extract version from 'E:\perl\site\lib\PARI/config/version';
trying extract from the directory name...
Directory `E:\perl\site\lib\PARI' has unknown syntax...
Found GP/PARI build directory in E:\perl\site\lib\PARI
     (integer-formatted version E:\perl\site\lib\PARI).
...Will not overwrite libPARI/paricfg.h...  (remove it manually if needed)
   You may also want to remove libPARI/paricfg.h if your configuration changed
   from the time of the first build in this directory...
Note (probably harmless): No library found for '-lm'
...Processor of family `586' detected
####    Do not know how to build for assembler `586'.   ####
####    Reversing to assembler-less type `port'.                ####
####                                                            ####
####    If you think your processor's assembler is supported    ####
####    by PARI, edit libPARI/Makefile.PL and report.           ####
####                                                            ####
####    Alternatively, specify machine=YOURTYPE or machine=none ####
####    on the                                                  ####
####      perl Makefile.PL                                      ####
####    command line.                                           ####
####    Recognized types:                                       ####
####      alpha hppa m86k none sparcv7 sparcv8 sparcv8_micro    ####
####      sparcv8_super ix86 (ppc ia64 after 2.2.7)             ####
...I will  use portable assembler-less build
...Assembler is not GNU assembler
Note (probably harmless): No library found for '-lm'
Writing Makefile for Math::PARI::libPARI
Writing Makefile for Math::Pari

C:\Documents and Settings\Administrator\Desktop\Math-Pari-2.010706>perl Makefile.PL paridir=E:\perl\site\lib\PARI  machine=none
Setting up Math::Pari with Perl 5.006001 on MSWin32 version 4.0;
   cc=cl, gccversion=, ccflags='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTE
XT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX',
   ld=link, ldflags='-nologo -nodefaultlib -release  -libpath:"E:/Perl\lib\CORE"  -machine:x86', optimize='-O1 -MD -DNDEBUG'.
Could not extract version from 'E:\perl\site\lib\PARI/config/version';
trying extract from the directory name...
Directory `E:\perl\site\lib\PARI' has unknown syntax...
Found GP/PARI build directory in E:\perl\site\lib\PARI
     (integer-formatted version E:\perl\site\lib\PARI).
...Will not overwrite libPARI/paricfg.h...  (remove it manually if needed)
   You may also want to remove libPARI/paricfg.h if your configuration changed
   from the time of the first build in this directory...
Note (probably harmless): No library found for '-lm'
...Via command-line: processor family `none'
...I will  use portable assembler-less build
...Assembler is not GNU assembler
Note (probably harmless): No library found for '-lm'
Writing Makefile for Math::PARI::libPARI
Writing Makefile for Math::Pari


still iam getting error

Can't locate loadable object for module Math::Pari in @INC (@INC contains: E:\PERL\LIB E:/perl/lib E:/perl/site/lib .) at

i don't have C complier envirnment.Is it required ? plese help me ..

Thanks & regards,
VeerendraNadh.CH


This email is confidential. If you are not the addressee tell the sender immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for
damage caused by this email and may monitor email traffic.




More information about the Catalyst mailing list