in reply to Re^2: Prime Numbers
in thread Prime Numbers

Hi KurtSchwind,

I've had good success building Math::Pari in the past on both windows and linux by building against PARI-2.1.4. Version 2.1.7 is probably ok, too - but I think there are issues if you try to build against some of the later versions of PARI (is it the 2.3.x versions ? ... I can't remember). In all cases, I've avoided building PARI first, opting instead to place the PARI source within the Math::Pari source - as outlined in the INSTALL file that ships with Math::Pari. Mind you, I haven't built it for a while, so I'm a little rusty on it.

As regards SSH, you might like to try Net::SSH2 (for which you'll need libssh2). That's assuming you're interested only in the SSH2 protocol.

As regards primality testing, Math::GMP (which requires the gmp library) is as good as Math::Pari.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Prime Numbers
by KurtSchwind (Chaplain) on Dec 10, 2007 at 16:41 UTC

    I tried putting the PARI source in the install directory and it still failed miserably. And it would only bother me in a minor way if it was a single machine, but I can't get this to work on any of my machines.

    I'm not sure if Net::SSH2 will do the task I want. I was hoping Net::SSH::Perl would have better luck. I probably start another thread on what I'm doing specifically and the issues I'm getting. But the jist is that my remote connection does a newgrp which execs another shell (I have no control over this) and it's giving Net::SSH* all sorts of issues.

    --
    I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.