in reply to Net::SFTP and the GMP pre-req.

Normally, I charge per hour when consulting for bug shooting. But I'm all out of bullets for today and the next shipment of ammunition isn't due until in two weeks, so I'll let you in on the Great Secret of Bug Hunting.

  1. Get a list of differences between machines
  2. Eliminate one difference
  3. Check whether problem still persists
  4. If problem still persists, continue with step 2
  5. Done

You have already identified one key difference between the two machines. GMP seems to be different between the two machines. Eliminate that difference by making the two versions identical. Preferrably by transplanting the working version onto the nonworking machine.

Replies are listed 'Best First'.
Re^2: Net::SFTP and the GMP pre-req.
by gw1500se (Beadle) on May 05, 2008 at 17:46 UTC
    There's the rub. As far as I can tell there is no obvious difference except that it doesn't work. Otherwise I wouldn't be here asking for help. As a rank novice with respect to CPAN and installing libraries, I have no clue as to where to look. I also have no clue how to clone the working libraries on to the non-working machine. It seems to me if I knew how, then cloning the perl libraries should solve the problem, right (I am assuming this is some kind of library install glitch)?

      How do you expect us to discern the nature of the problem between the two machines from the information you've given us? Really - do you expect me to bring out the chicken bones, throw them on a printout of your post and then tell you that the I-Ching points to line 23 in your code? I can do that, of course, and maybe it helps you to know that the root of your problem lies in line 23.

      Debugging is more craft than art, and I've already told you what you need to do to isolate the cause and eliminate the error. If you don't know who installed the GMP library, or whether the machines should even be identical or where files are on the machines, I can only recommend that you summon the administrator of the machines by whatever ritual is customary and beseech him to investigate, as spawn of his parent-hive did for your parents and spawn of his grand-hive did for your grandparents, since eons ago.

      You can also ask Perl as to how it is configured:

      perl -V

      This will tell you lots and lots about the Perl on each machine. If these things differ, you have one more point of attack. Also, maybe consider checking that the installed versions of GMP are identical:

      perl -MMath::GMP -e "die $Math::GMP::VERSION"