Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Building Net::SFTP support on solaris with libpari etc.

Reply
Thread Tools

Building Net::SFTP support on solaris with libpari etc.

 
 
depke@comcast.net
Guest
Posts: n/a
 
      08-02-2005
I thought I would share my experience getting this to work for solaris.
It seems that this has been a recurring problem.

Net::SFTP depends upon Net::SSH(protocol 2). This in turn depends upon
a
number of packages. But Math:ari was the fun one to build.
Math:ari requires libpari. On my system(gcc version 3.4.3 SunOS 5.
I was only able to build the "c" version of the library. There are
tuned versions of the routines which use assembler. But I found that
the
assembler versions would not build on my compiler.

So now I thought I was done, and if I were a patient person I would
have
been. The problem was that the key generation was horribly slow. After
digging into which calls were taking so long I discovered that even
though
I had successfully installed Math:ari it wasn't being used.
Apparently you
need Math::BigInt:ari. This overrides the core of Math::BigInt with a
pari
implementation. So I tried this but I got the following error:
_is_zero
Not an ARRAY reference at
/opt/local/perl/5.8/lib/5.8.6/Math/BigInt/Calc.pm line 998.
I tried various combinations of Math::BigInt, Math::BigInt:ari
versions
but all failed for me.

So then I decided to try Math::BigInt::GMP. I noticed that Crypt:H
actually
prefers GMP(from DH.pm use Math::BigInt lib => "GMP,Pari"
I believe that part of building libpari I build libgmp. Also I read
that
Math::BigInt::GMP also replaces the slow implementation of BigInt with
c code.

Eureka! It finally worked. Although I never got pari supported, at
least within
SFTP, I did get SFTP working which was my goal. I hope this helps, here
are
the package versions I am running:

Math::BigInt::GMP v1.17
Math::GMP v2.04
Math:ari v2.010602
Math::BigInt v1.74
Math::BigInt:ari v1.10 also tried v1.11
Math::BigInt::GMP v1.17
gmp-4.1
pari-2.1.6

Regards,
Tom

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need pixie dust for building Python 2.4 curses module on Solaris 8 skip@pobox.com Python 3 06-07-2006 07:28 PM
building Python on solaris Thomas Heller Python 2 10-21-2004 07:21 PM
building DB_File with BerkleyDB in 64 bit mode on Solaris 5.8 Mike Perl 0 04-08-2004 08:53 PM
Building Imaging-1.1.4 on Solaris 9 Mark Nelson Python 1 09-11-2003 06:15 PM
Solaris 9, problem building Python 2.1.1 Dave Harrison Python 0 07-16-2003 12:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57