LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2013, 04:59 PM   #1
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Rep: Reputation: 24
Installation of Math-Pari on Debian


Hello guys,

I have a debian machine, which have missing Math-Pari package. I got the following error, when run my script:
Code:
# perl ssh-without-key.pl
Can't locate Math/Pari.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Util/SSH2MP.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Util/SSH2MP.pm line 6, <GEN0> line 1.
Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Util.pm line 56, <GEN0> line 1.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Kex/DH1.pm line 10, <GEN0> line 1.
Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.
Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/Perl.pm line 52, <GEN0> line 1.

Unfortunately I have no access to port 80 on that machine so I am unable to install it automaticly from CPAN.

I was trying to compile it, but also have some issues:
Code:
========================= Installation results ===========================
cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O2 -g" PREFIX="/usr" PASTHRU_DEFINE="" PASTHRU_INC=""
make[1]: Entering directory `/usr/src/cpan.perl/Math-Pari-2.010709/libPARI'
cc -c  -I ../../../pari-2.5.3/src -I../../../pari-2.5.3/src/headers -I../../../pari-2.5.3/src/graph -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr=pari_err -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o ellsea.o ../../../pari-2.5.3/src/modules/ellsea.c
In file included from ../../../pari-2.5.3/src/modules/ellsea.c:33:
../../../pari-2.5.3/src/headers/pari.h:59:21: error: mpinl.h: No such file or directory
../../../pari-2.5.3/src/modules/ellsea.c: In function 'find_trace':
../../../pari-2.5.3/src/modules/ellsea.c:840: error: invalid type argument of 'unary *' (have 'int')
../../../pari-2.5.3/src/modules/ellsea.c: In function 'ellsea':
../../../pari-2.5.3/src/modules/ellsea.c:1343: error: invalid type argument of 'unary *' (have 'int')
make[1]: *** [ellsea.o] Error 1
make[1]: Leaving directory `/usr/src/cpan.perl/Math-Pari-2.010709/libPARI'
make: *** [libPARI/libPARI.a] Error 2
It will takes ages, to fix it manualy changing the paths and trying to fix, by changing the code..

Do you have any option how can I install it without sources, or in a more simple way?

Thanks,
 
Old 04-15-2013, 05:48 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
mpinl.h: No such file or directory
http://stuff.mit.edu/afs/sipb/projec...e/pari/mpinl.h
> mpinl.h
# cp mpinl.h /usr/local/include/

http://www.cpan.org/authors/id/I/IL/...1080605.tar.gz
cd Math-Pari-2.01080605/ && perl Makefile.PL && make : No errors.

P.S. : I don't think this version (2.01080605) even uses mpinl.h .
Pari-2.17 was downloaded automatically : No "mpinl.h" in pari.h .

-

Last edited by knudfl; 04-15-2013 at 05:58 PM.
 
  


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
Install Math::Pari Library versatica Linux - Software 2 02-13-2012 05:03 PM
C (math.h)not doing right math? exp() issue. knockout_artist Programming 7 11-25-2011 02:13 PM
Running a 2.6.* kernel with math emulation ( Does the math emulation work ?) dar_beh_dar Linux - Kernel 3 05-20-2009 11:43 PM
math program that I can enter math functions ... Four General 5 04-19-2006 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:04 PM.

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