Building Net::SFTP support on solaris with libpari etc.
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
number of packages. But Math::Pari was the fun one to build.
Math::Pari requires libpari. On my system(gcc version 3.4.3 SunOS 5.8)
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
assembler versions would not build on my compiler.
So now I thought I was done, and if I were a patient person I would
been. The problem was that the key generation was horribly slow. After
digging into which calls were taking so long I discovered that even
I had successfully installed Math::Pari it wasn't being used.
need Math::BigInt::Pari. This overrides the core of Math::BigInt with a
implementation. So I tried this but I got the following error:
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::Pari
but all failed for me.
So then I decided to try Math::BigInt::GMP. I noticed that Crypt::DH
prefers GMP(from DH.pm use Math::BigInt lib => "GMP,Pari";)
I believe that part of building libpari I build libgmp. Also I read
Math::BigInt::GMP also replaces the slow implementation of BigInt with
Eureka! It finally worked. Although I never got pari supported, at
SFTP, I did get SFTP working which was my goal. I hope this helps, here
the package versions I am running:
Math::BigInt::Pari v1.10 also tried v1.11
|All times are GMT. The time now is 09:44 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.