LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2012, 09:03 AM   #1
versatica
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Install Math::Pari Library


I can´t install Math::PAri library in perl 5.14.2. The System Operating is RedHat 5.3.
I do:
perl Makefile.PL
and I get the follow:
[root@USSD5 Math-Pari-2.010709]# perl Makefile.PL Configure
Filtered out versions too new...
Setting up Math::Pari with Perl 5.014002 on linux version 2.6.18-128.el5pae;
cc=cc, gccversion=4.1.2 20080704 (Red Hat 4.1.2-44), ccflags='-fno-strict-ali asing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_O FFSET_BITS=64',
ld=cc, ldflags=' -fstack-protector -L/usr/local/lib', optimize='-O2'.
Found GP/PARI build directory in ../pari-2.5.0
(integer-formatted version 2005000).
Found ../pari-2.5.0/Olinux-i686/paricfg.h, copying it to libPARI...
Checking if your kit is complete...
Looks good
...Processor of family `ix86' detected
...I will use assembler build of type 'ix86'.
...Assembler is GNU assembler
Writing Makefile for Math::PARI::libPARI
Writing MYMETA.yml
Writing Makefile for Math::Pari
Writing MYMETA.yml

but when i do "make" i get the follow error:

[root@USSD5 Math-Pari-2.010709]# make
cp libPARI.dumb.pod blib/lib/Math/libPARI.dumb.pod
cp PariInit.pm blib/lib/Math/PariInit.pm
cp Pari.pm blib/lib/Math/Pari.pm
cp libPARI.pod blib/lib/Math/libPARI.pod
cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O2" PREFI X="/usr/local" PASTHRU_DEFINE="" PASTHRU_INC=""
make[1]: Entering directory `/home/pasantedn/Math-Pari-2.010709/libPARI'
/usr/local/bin/perl -wle "print q(#ifndef ASMINLINE)" > pariinl.h
/usr/local/bin/perl -pe1 ../../pari-2.5.0/src/kernel/none/addll.h ../../pari-2.5 .0/src/kernel/none/mulll.h ../../pari-2.5.0/src/kernel/none/bfffo.h ../../pari-2 .5.0/src/kernel/none/divll.h >> pariinl.h
/usr/local/bin/perl -wle "print q(#endif)" >> pariinl.h
/usr/local/bin/perl -pe1 ../../pari-2.5.0/src/kernel/ix86/asm0.h ../../pari-2.5. 0/src/kernel/none/tune.h ../../pari-2.5.0/src/kernel/none/int.h ../../pari-2.5.0 /src/kernel/none/level1.h >> pariinl.h
cc -c -I ../../pari-2.5.0/src -I../../pari-2.5.0/src/headers -I../../pari-2.5.0 /src/graph -I. -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"\" -DXS_VERSION=\" \" -fPIC -Derr=pari_err -DGCC_INLINE -DDYNAMIC_PLOTTING -o ellsea.o ../../pari-2 .5.0/src/modules/ellsea.c
In file included from ../../pari-2.5.0/src/modules/ellsea.c:33:
../../pari-2.5.0/src/headers/pari.h:59:21: error: mpinl.h: No such file or direc tory
../../pari-2.5.0/src/modules/ellsea.c: In function âfind_traceâ:
../../pari-2.5.0/src/modules/ellsea.c:836: error: invalid type argument of âunar y *â
../../pari-2.5.0/src/modules/ellsea.c: In function âellseaâ:
../../pari-2.5.0/src/modules/ellsea.c:1339: error: invalid type argument of âuna ry *â
make[1]: *** [ellsea.o] Error 1
make[1]: Leaving directory `/home/pasantedn/Math-Pari-2.010709/libPARI'
make: *** [libPARI/libPARI.a] Error 2

I can't to solve this error....Someone can help me..
 
Old 02-13-2012, 03:50 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Just make life easy on yourself. Install it from EPEL.

(I checked a moment ago. There's a perl-Math-Pari package available.)
 
Old 02-13-2012, 05:03 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by versatica View Post
I can´t install Math::PAri library in perl 5.14.2. The System Operating is RedHat 5.3.
I do:
perl Makefile.PL
and I get the follow:
[root@USSD5 Math-Pari-2.010709]# perl Makefile.PL Configure

I can't to solve this error....Someone can help me..
First, you do realize that version of Math::Pari you're installing is from 2006, right?? SIX YEARS OLD?. Get the latest version if you're going to install it, which is Math-Pari-2.01080605, and you can easily find it on CPAN:
http://search.cpan.org/~ilyaz/Math-Pari-2.01080605/

If you did, and you ran "perl Makefile.PL", you'd see that it now automatically fetches that piece of missing code, and compiles/runs just fine. anomie posted a good solution as well...and, since you're using RHEL 5, have you called RedHat? You're paying for support with your subscription...
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPAN cannot install Math::Pari module bluethundr Programming 4 02-13-2021 07:55 PM
how to connect math.h library to c program shridhar005 Programming 14 06-29-2010 08:47 AM
need a c or c++ advanced math library ra2000 Linux - Software 1 09-19-2007 11:39 AM
math library issues on ubuntu 5.10 (i think) anon192 Programming 3 05-04-2007 01:36 PM
math library for linux kooshball Programming 4 05-28-2005 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration