veeruch has asked for the wisdom of the Perl Monks concerning the following question:

I was installing Math::Pari i got some errors


C:\Documents and Settings\Administrator\Desktop\Math-Pari-2.010706>per +l 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 parid +ir=/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>per +l 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_CO +NSOLE -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 nee +ded) 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>per +l 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_CO +NSOLE -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 nee +ded) 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 while i run the script

------------------------------------------------

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


plese help me how to install windows wht r the things required ?


i couldn't install throw ppm bcoz we have proxy setup


Edited by planetscape - added code and readmore tags

( keep:0 edit:12 reap:0 )

Replies are listed 'Best First'.
Re: problem with installing Math::pari in windows
by Corion (Patriarch) on Jun 30, 2006 at 06:29 UTC

    You haven't shown us the output from when you compile and test Math::PARI.

    The usual sequence of commands is

    perl -w Makefile.PL make make test make install

    So far we've only seen the perl Makefile.PL part.

    Update: Looking at your perl -V output, you have cc=cl, which means you're running on Win32 with MSVC as the compiler, so you'll have to change the above to:

    perl -w Makefile.PL nmake nmake test nmake install

    See also syphilis' node below.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: problem with installing Math::pari in windows
by Ieronim (Friar) on Jun 30, 2006 at 10:31 UTC
    Why don't you use ppm ? Math::Pari is availible even in ActiveState repositories.
    A reply falls below the community's threshold of quality. You may see it by logging in.