Newbie Desperate for Help Installing Math::Pari

Newbie Desperate for Help Installing Math::Pari

am 10.08.2006 04:25:48 von scoconnell

Hi,
I am a Microsoft refugee new to the open source world. I installed
CentOS Linux, Apache2, perl 5.8.5, mod_perl, and mySQL. I'm trying to
install Crypt::RSA but it requires Crypt::Random which requires
Math::Pari, which I can't get to install in spite of HOURS of work
(well, guesswork would be more appropriate.) It won't install via CPAN
because it can't find GP/PARI, even though I believe I have
successfully installed that. So I tried to download and install version
1.010706 manually. perl Makefile.PL and make seem to run OK. But the
make test fails miserably:

cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic"
PREFIX="" OPTIMIZE="-O2" PASTHRU_DEFINE="" PASTHRU_INC=""
make[1]: Entering directory
`/usr/local/src/pari-2.3.0/Math-Pari-2.010706/libPARI'
make[1]: Leaving directory
`/usr/local/src/pari-2.3.0/Math-Pari-2.010706/libPARI'
make[1]: Entering directory
`/usr/local/src/pari-2.3.0/Math-Pari-2.010706/libPARI'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/src/pari-2.3.0/Math-Pari-2.010706/libPARI'
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_Pari............dubious
Test returned status 0 (wstat 11, 0xb)
t/55_analyz..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_ellglobalred....dubious
Test returned status 0 (wstat 11, 0xb)
t/55_elliptic........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_galois..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_graph...........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_intnum..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_linear..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_nfields.........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_number..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_objets..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_ploth...........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_polyser.........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_program.........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_qfbsolve........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_rfrac...........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_round4..........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_stark...........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_sumiter.........dubious
Test returned status 0 (wstat 11, 0xb)
t/55_trans...........dubious
Test returned status 0 (wstat 11, 0xb)
t/PlotRect...........dubious
Test returned status 0 (wstat 11, 0xb)
t/zz_leak............dubious
Test returned status 0 (wstat 11, 0xb)
FAILED--22 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2

I did a make install anyway which seems to go ok. But when I try to
install Crypt::Random manually I get a segmentation fault during perl
Makefile.PL, and I think it's on the Math::Pari PREREQ_PM line.

Does anyone have any ideas what I might have done wrong or how I can
fix this? Here's my perl -V output:

Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=linux, osvers=2.6.7-1.494.2.2smp,
archname=i686-linux-thread-multi-ld
uname='linux pax.charityweb.net 2.6.7-1.494.2.2smp #1 smp tue aug 3
09:59:49 edt 2004 i686 i686 i386 gnulinux '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=define
usemymalloc=y, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -march=i686 -mcpu=i686
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -march=i686 -mcpu=i686
-I/usr/include/gdbm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -march=i686 -mcpu=i686
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
-pipe -I/usr/local/include -march=i686 -mcpu=i686 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include
-march=i686 -mcpu=i686 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm'
ccversion='', gccversion='3.4.5 20051201 (Red Hat 3.4.5-2)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='long double', nvsize=12,
Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/lib /usr/lib /usr/local/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.3.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LONG_DOUBLE
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Aug 7 2006 20:07:06
@INC:
/usr/local/lib/perl5/5.8.5/i686-linux-thread-multi-ld
/usr/local/lib/perl5/5.8.5
/usr/local/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi -ld
/usr/local/lib/perl5/site_perl/5.8.5
/usr/local/lib/perl5/site_perl
.

Thanks in advance for your efforts.
S.O.

Re: Newbie Desperate for Help Installing Math::Pari

am 13.08.2006 10:00:32 von Sisyphus

wrote in message
..
..
> t/00_Pari............dubious
> Test returned status 0 (wstat 11, 0xb)
> t/55_analyz..........dubious
> Test returned status 0 (wstat 11, 0xb)
..
..
> t/PlotRect...........dubious
> Test returned status 0 (wstat 11, 0xb)
> t/zz_leak............dubious
> Test returned status 0 (wstat 11, 0xb)

All of the tests seem to be suffering the same failure. What do you get when
you run:

perl -Mblib t/00_Pari.t

(That will hopefully provide more meaningful diagnostics on what goes wrong
when the 00_Pari.t tests are run.)

Cheers,
Rob

Re: Newbie Desperate for Help Installing Math::Pari

am 15.08.2006 05:01:24 von scoconnell

Oh thank you thank you thank you for replying. But I'm afraid the
result of
perl -Mblib t/00_Pari.t is a Segmentation fault.
I've considered just wiping everything out and starting from scratch
again. Do you think I should do that or is there a way to save it?
Thanks so much,
S.O.


Sisyphus wrote:
> wrote in message
> .
> .
> > t/00_Pari............dubious
> > Test returned status 0 (wstat 11, 0xb)
> > t/55_analyz..........dubious
> > Test returned status 0 (wstat 11, 0xb)
> .
> .
> > t/PlotRect...........dubious
> > Test returned status 0 (wstat 11, 0xb)
> > t/zz_leak............dubious
> > Test returned status 0 (wstat 11, 0xb)
>
> All of the tests seem to be suffering the same failure. What do you get when
> you run:
>
> perl -Mblib t/00_Pari.t
>
> (That will hopefully provide more meaningful diagnostics on what goes wrong
> when the 00_Pari.t tests are run.)
>
> Cheers,
> Rob

Re: Newbie Desperate for Help Installing Math::Pari

am 15.08.2006 10:01:39 von Sisyphus

wrote in message
news:1155610884.617213.98810@i3g2000cwc.googlegroups.com...
> Oh thank you thank you thank you for replying. But I'm afraid the
> result of
> perl -Mblib t/00_Pari.t is a Segmentation fault.

Yuk. No other diagnostic messages ??

> I've considered just wiping everything out and starting from scratch
> again. Do you think I should do that or is there a way to save it?

Yes, I'd start again from scratch - building by running the commands
manually (rather than using the automated CPAN procedure). Math::Pari needs
only to be able to find the Pari-2.3.0 source. There's no need to build
GP/PARI before trying to build Math::Pari (and I've never tried building
Math::Pari that way).

Check the 'README' and 'INSTALL' first, in case there's something that
you've missed.

If it still fails in the same way, it's probably best to give us the full
output of 'perl Makefile.PL ...' (including the actual command you ran).

Or take up the author's offer outlined in the "Reporting bugs/problems"
section of the 'README'.

Cheers,
Rob

Re: Newbie Desperate for Help Installing Math::Pari

am 02.09.2006 22:47:32 von scoconnell

I got so frustrated I had to take some time off with this. But I'm back
now. Here's the output from the perl Makefile.PL:

Filtered out versions too new...
Setting up Math::Pari with Perl 5.008005 on linux version
2.6.7-1.494.2.2smp;
cc=gcc, gccversion=3.4.5 20051201 (Red Hat 3.4.5-2),
ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -I/usr/local/include -march=i686 -mcpu=i686
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
ld=gcc, ldflags=' -L/usr/local/lib', optimize='-O2'.
Found GP/PARI build directory in ../../pari-2.3.0
(integer-formatted version 2003000).
....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...
....Processor of family `ix86' detected
....I will use assembler build of type 'ix86'.
Writing Makefile for Math::PARI::libPARI
Writing Makefile for Math::Pari

Also, I have been installing it manually because CPAN would never work
because it couldn't find Pari. So I had to download Pari 2.3.0 then
download Math::Pari into a subdirectory per the instructions. I've been
over the Readme and Install a dozen times - not very clear to a newbie.

When I mentioned doing things from scratch, I meant the whole operating
system and everything. I've been working on this thing for weeks.

By the way, your ID doesn't indicate what's it like to work in open
source, does it?

Thanks,
SO


Sisyphus wrote:
> wrote in message
> news:1155610884.617213.98810@i3g2000cwc.googlegroups.com...
> > Oh thank you thank you thank you for replying. But I'm afraid the
> > result of
> > perl -Mblib t/00_Pari.t is a Segmentation fault.
>
> Yuk. No other diagnostic messages ??
>
> > I've considered just wiping everything out and starting from scratch
> > again. Do you think I should do that or is there a way to save it?
>
> Yes, I'd start again from scratch - building by running the commands
> manually (rather than using the automated CPAN procedure). Math::Pari needs
> only to be able to find the Pari-2.3.0 source. There's no need to build
> GP/PARI before trying to build Math::Pari (and I've never tried building
> Math::Pari that way).
>
> Check the 'README' and 'INSTALL' first, in case there's something that
> you've missed.
>
> If it still fails in the same way, it's probably best to give us the full
> output of 'perl Makefile.PL ...' (including the actual command you ran).
>
> Or take up the author's offer outlined in the "Reporting bugs/problems"
> section of the 'README'.
>
> Cheers,
> Rob

Re: Newbie Desperate for Help Installing Math::Pari

am 03.09.2006 02:30:05 von Sisyphus

wrote in message
news:1157230052.376493.15380@i42g2000cwa.googlegroups.com...
> I got so frustrated I had to take some time off with this. But I'm back
> now. Here's the output from the perl Makefile.PL:
>
> Filtered out versions too new...
> Setting up Math::Pari with Perl 5.008005 on linux version
> 2.6.7-1.494.2.2smp;
> cc=gcc, gccversion=3.4.5 20051201 (Red Hat 3.4.5-2),
> ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -fno-strict-aliasing -pipe -I/usr/local/include -march=i686 -mcpu=i686
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
> ld=gcc, ldflags=' -L/usr/local/lib', optimize='-O2'.
> Found GP/PARI build directory in ../../pari-2.3.0
> (integer-formatted version 2003000).
> ...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...
> ...Processor of family `ix86' detected
> ...I will use assembler build of type 'ix86'.
> Writing Makefile for Math::PARI::libPARI
> Writing Makefile for Math::Pari

And it still builds fine and segfaults when the tests are run ?

Try:

make clean
perl Makefile.PL machine=none
make test

Other than that, contacting the author might be your best shot.
He might even reply here to your post.

Cheers,
Rob

Re: Newbie Desperate for Help Installing Math::Pari

am 03.09.2006 03:45:03 von scoconnell

Thanks for your quick reply, Rob. I did
> make clean
> perl Makefile.PL machine=none
> make test
and got similar output but a more explicit error:
ERROR from evaluation of
/usr/local/src/pari-2.3.0/Math-Pari-2.010706/libPARI/Makefil e.PL: Do
not know how to process MakeLVL1.SH at utils/Math/Paribuild.pm line 892

I had tried to install and compile Pari 2.3.0 previously - was that a
mistake? Do I need to remove it? And if so how?

I looked around to see if I could find that error elsewhere and
couldn't find much. Just another guy on a Mac who's having the same
problem.
Thanks,
S.O.

Re: Newbie Desperate for Help Installing Math::Pari

am 03.09.2006 11:26:29 von rahed

scoconnell@aol.com writes:

You should use the same versions for pari library and Pari modul to
obtain the best results. So for Math-Pari-2.010706 get pari-2.1.7 source
and put in the Math-Pari installation directory. Then compile.

There is some info regarding problems with installation on rt.cpan.org.

--
Radek

Re: Newbie Desperate for Help Installing Math::Pari

am 03.09.2006 13:14:42 von Ilya Zakharevich

[A complimentary Cc of this posting was sent to
Sisyphus
], who wrote in article <44fa2306$0$11970$afc38c87@news.optusnet.com.au>:
> Try:

> make clean
> perl Makefile.PL machine=none

Nope, machine=none won't work with 2.3.0 and the released version of
Math::Pari. It works with machine=none in my private version. I can
release it if somebody want to build with 2.3.0 (which is not a
supported configuration yet) and machine=none is OK for them; it won't
work machine=sparc*, so I wanted to play with it more before the
release.

Hope this helps,
Ilya

Re: Newbie Desperate for Help Installing Math::Pari

am 04.09.2006 19:39:44 von scoconnell

Oh thank you so much. I got it installed. That was such a dumb newbie
mistake - but I probably never would have caught it on my own.
S.O.