Re: Installing Net::SFTP

2007-12-07 Thread Michael Houghton

Howdy!

On Dec 6, 2007, at 8:16 AM, Dennis Putnam wrote:


Hi Michael,

Thanks for the reply. I already have MIME::Base64. However, I  
decided to try to upgrade all the modules to see if that would  
help. What a mess. I have many modules that fail for a host of  
reason, mostly test failures.



So did I. But I went and did the usual incantation on MIME::Base64 by
hand to force an up-to-date install and that seemed to clear up the
problem. I didn't dig for a reason, but the initial error message
pointed to something being awry in MIME::Base64.

yours,
Michael
--
Michael and MJ Houghton | Herveus d'Ormonde and Megan O'Donnelly
[EMAIL PROTECTED]   | White Wolf and the Phoenix narrowwares
Bowie, MD, USA  | http://whitewolfandphoenix.com
Proud member of the SCA Internet Whitewash Squad





Re: Installing Net::SFTP

2007-12-07 Thread Dennis Putnam

Hi Michael,

Thanks again for the reply. I already had the latest MIME::Base64 but  
while I was verifying that I made a startling discovery. I now know  
what the problem is but not how to fix it. I have perl 5.8.8. All my  
updates via CPAN go into /usr/local/lib/perl5, which I believe is  
normal. However, when I run perl, it never looks there. Apparently,  
the path for that is not in Perl's library list. How do I add that  
and why do I have to? This only happened after I installed (or rather  
tried) Net::SFTP.


On Dec 6, 2007, at 6:23 PM, Michael Houghton wrote:


Howdy!

On Dec 6, 2007, at 8:16 AM, Dennis Putnam wrote:


Hi Michael,

Thanks for the reply. I already have MIME::Base64. However, I  
decided to try to upgrade all the modules to see if that would  
help. What a mess. I have many modules that fail for a host of  
reason, mostly test failures.



So did I. But I went and did the usual incantation on MIME::Base64 by
hand to force an up-to-date install and that seemed to clear up the
problem. I didn't dig for a reason, but the initial error message
pointed to something being awry in MIME::Base64.

yours,
Michael
--
Michael and MJ Houghton | Herveus d'Ormonde and Megan O'Donnelly
[EMAIL PROTECTED]   | White Wolf and the Phoenix narrowwares
Bowie, MD, USA  | http://whitewolfandphoenix.com
Proud member of the SCA Internet Whitewash Squad








Dennis Putnam
Sr. IT Systems Administrator
AIM Systems, Inc.
11675 Rainwater Dr., Suite 200
Alpharetta, GA  30004
Phone: 678-240-4112
Main Phone: 678-297-0700
FAX: 678-297-2666 or 770-576-1000
The information contained in this e-mail and any attachments is  
strictly confidential. If you are not the intended recipient, any  
use, dissemination, distribution, or duplication of any part of this  
e-mail or any attachment is prohibited. If you are not the intended  
recipient, please notify the sender by return e-mail and delete all  
copies, including the attachments.





Re: Installing Net::SFTP

2007-12-07 Thread Dennis Putnam

Hi Michael,

Eureka!

I don't know how this happened but I have 2 versions of perl.  
Apparently. OS X comes wtih 5.8.6 and installs it in /usr/bin. I also  
have 5.8.8 which is in /usr/local/bin.


I obviously have a very confused installation and at this point I  
guess I need to know which should I use and how do I straighten this  
mess out?


On Dec 7, 2007, at 7:43 AM, Dennis Putnam wrote:


Hi Michael,

Thanks again for the reply. I already had the latest MIME::Base64  
but while I was verifying that I made a startling discovery. I now  
know what the problem is but not how to fix it. I have perl 5.8.8.  
All my updates via CPAN go into /usr/local/lib/perl5, which I  
believe is normal. However, when I run perl, it never looks there.  
Apparently, the path for that is not in Perl's library list. How do  
I add that and why do I have to? This only happened after I  
installed (or rather tried) Net::SFTP.


On Dec 6, 2007, at 6:23 PM, Michael Houghton wrote:


Howdy!

On Dec 6, 2007, at 8:16 AM, Dennis Putnam wrote:


Hi Michael,

Thanks for the reply. I already have MIME::Base64. However, I  
decided to try to upgrade all the modules to see if that would  
help. What a mess. I have many modules that fail for a host of  
reason, mostly test failures.



So did I. But I went and did the usual incantation on MIME::Base64 by
hand to force an up-to-date install and that seemed to clear up the
problem. I didn't dig for a reason, but the initial error message
pointed to something being awry in MIME::Base64.

yours,
Michael
--
Michael and MJ Houghton | Herveus d'Ormonde and Megan O'Donnelly
[EMAIL PROTECTED]   | White Wolf and the Phoenix narrowwares
Bowie, MD, USA  | http://whitewolfandphoenix.com
Proud member of the SCA Internet Whitewash Squad








Dennis Putnam
Sr. IT Systems Administrator
AIM Systems, Inc.
11675 Rainwater Dr., Suite 200
Alpharetta, GA  30004
Phone: 678-240-4112
Main Phone: 678-297-0700
FAX: 678-297-2666 or 770-576-1000
The information contained in this e-mail and any attachments is  
strictly confidential. If you are not the intended recipient, any  
use, dissemination, distribution, or duplication of any part of  
this e-mail or any attachment is prohibited. If you are not the  
intended recipient, please notify the sender by return e-mail and  
delete all copies, including the attachments.







Dennis Putnam
Sr. IT Systems Administrator
AIM Systems, Inc.
11675 Rainwater Dr., Suite 200
Alpharetta, GA  30004
Phone: 678-240-4112
Main Phone: 678-297-0700
FAX: 678-297-2666 or 770-576-1000
The information contained in this e-mail and any attachments is  
strictly confidential. If you are not the intended recipient, any  
use, dissemination, distribution, or duplication of any part of this  
e-mail or any attachment is prohibited. If you are not the intended  
recipient, please notify the sender by return e-mail and delete all  
copies, including the attachments.





Re: Installing Net::SFTP

2007-12-07 Thread John Graybeal
Dennis,

I just went through this same pain, for more or less the same reason (CPAN 
'helping'), hopefully I can provide some helpful details.

The first thing I did is learn the magic of 'perl -V', so I always knew exactly 
what I was dealing with. You probably have already seen the helpfully complete 
output that command produces.

Second I found that I can alias perl to point to either executable location. 
(Alternatively, I can set up my environment/path so that the perl I want to run 
comes first in the list.  'setenv' includes a list of the paths that are 
searched for executables.) 'which perl' will tell you which perl you will get 
if you just type 'perl' -- this is also helpful.  If these unix-isms are new to 
you I suggest using a search engine to get a tutorial on setenv and path at 
least (I'm actually not very expert in them myself).

I found it helped to have 'which perl' resolve to CPAN's perl when you are 
using CPAN. The dependencies (yuk yuk yuk, as you've noted) can sometimes take 
forever to resolve, but eventually mine started working, after significant 
fear/uncertainty/doubt.  I found I had to be superuser a lot when running CPAN 
or doing Perl installs, which doesn't feel right, but hey, whatever worked.

Then there are the Perl libraries themselves.  These are referenced in two or 
three different ways, which are described in the Perl documentation -- there 
are variables in the environment ('setenv' again) dedicated to Perl, you can 
look at those to make sure they include what you need.  They probably are OK, 
as long as you're running the right Perl.  (For all I know you can set up both 
versions of Perl to use all the same libraries, but it just didn't seem like a 
good idea to try to do that, and in the end I didn't have to.)

Finally, in the end I ended up installing some Perl modules without using CPAN, 
because I was just getting too irritated at all of CPAN's foibles, or couldn't 
make it work.  I expect this was operator error or something, but the point is 
you can search on-line for, e.g., Net::SFTP, you'll find a link to the CPAN 
*page* for that module, and can download it directly from the web, then try 
installing it following the instructions.  This seemed to work better for some 
things than CPAN did.  Again, make sure 'which perl' says you are using the 
version of perl for which you want the module installed.

A tool that helped me sort all that out was Affrus, a Mac tool to run and debug 
Perl scripts.  It can be configured to run Perl from either environment (you 
can choose when you run the software).  It's a nice tool but by no means 
necessary to fix your problem, I just thought I'd give them a plug since it 
helped me with this problem.

Hope some of this helps.

John




At 7:58 AM -0500 12/7/07, Dennis Putnam wrote:
Hi Michael,

Eureka!

I don't know how this happened but I have 2 versions of perl. Apparently. OS X 
comes wtih 5.8.6 and installs it in /usr/bin. I also have 5.8.8 which is in 
/usr/local/bin.

I obviously have a very confused installation and at this point I guess I need 
to know which should I use and how do I straighten this mess out?

On Dec 7, 2007, at 7:43 AM, Dennis Putnam wrote:

Hi Michael,

Thanks again for the reply. I already had the latest MIME::Base64 but while I 
was verifying that I made a startling discovery. I now know what the problem 
is but not how to fix it. I have perl 5.8.8. All my updates via CPAN go into 
/usr/local/lib/perl5, which I believe is normal. However, when I run perl, it 
never looks there. Apparently, the path for that is not in Perl's library 
list. How do I add that and why do I have to? This only happened after I 
installed (or rather tried) Net::SFTP.

On Dec 6, 2007, at 6:23 PM, Michael Houghton wrote:

Howdy!

On Dec 6, 2007, at 8:16 AM, Dennis Putnam wrote:

Hi Michael,

Thanks for the reply. I already have MIME::Base64. However, I decided to 
try to upgrade all the modules to see if that would help. What a mess. I 
have many modules that fail for a host of reason, mostly test failures.

So did I. But I went and did the usual incantation on MIME::Base64 by
hand to force an up-to-date install and that seemed to clear up the
problem. I didn't dig for a reason, but the initial error message
pointed to something being awry in MIME::Base64.

yours,
Michael
--
Michael and MJ Houghton | Herveus d'Ormonde and Megan O'Donnelly
[EMAIL PROTECTED]   | White Wolf and the Phoenix narrowwares
Bowie, MD, USA  | http://whitewolfandphoenix.com
Proud member of the SCA Internet Whitewash Squad






Dennis Putnam
Sr. IT Systems Administrator
AIM Systems, Inc.
11675 Rainwater Dr., Suite 200
Alpharetta, GA  30004
Phone: 678-240-4112
Main Phone: 678-297-0700
FAX: 678-297-2666 or 770-576-1000
The information contained in this e-mail and any attachments is strictly 
confidential. If you are not the intended recipient, any use, dissemination, 
distribution, or duplication of any part of this e-mail or any 

Re: Installing Net::SFTP

2007-12-06 Thread Dennis Putnam

Hi Michael,

Thanks for the reply. I already have MIME::Base64. However, I decided  
to try to upgrade all the modules to see if that would help. What a  
mess. I have many modules that fail for a host of reason, mostly test  
failures.


Unfortunately, when I try 'force', the modules appear to install but  
when I check, they report the old version.


Some of the errors are downright bizarre. For example, something  
requires BerkeleyDB. But in order to install it, I apparently need a  
the new version of error.h.


BerkeleyDB.xs:74:2: error: #error db.h is from Berkeley DB 1.x - need  
at least Berkeley DB 2.6.4


So if this is a requirement then why does it not install it as a  
prereq? Where is it anyway. I found nothing that shows a version 2.6.4.


Other modules fail because they didn't run all the tests. Why not?

FWIW, here is the summary from the 'upgrade' command:

GOZER/mod_perl-1.30.tar.gz   : make_test NO
 PMQS/BerkeleyDB-0.32.tar.gz  : make NO
 VIPUL/Crypt-RSA-1.58.tar.gz  : make_test NO
 CAPTTOFU/DBD-mysql-4.005.tar.gz  : make_test NO
 GAAS/Digest-1.15.tar.gz  : make_test NO
 DANKOGAI/Encode-2.23.tar.gz  : make_test NO
 GAAS/libwww-perl-5.808.tar.gz: make_test NO
 TOMHUGHES/IO-Zlib-1.08.tar.gz: make_test NO
 DONEILL/MIME-tools-5.425.tar.gz  : make_test NO
 JMASON/Mail-SpamAssassin-3.2.3.tar.gz: writemakefile NO '/ 
usr/bin/perl Makefile.PL' returned status 256

 MBARBON/Wx-0.80.tar.gz   : make NO
 NWCLARK/perl-5.8.8.tar.gz

As I said, force install tells me it worked but really didn't. Why is  
this rocket science just to get one module?


Thanks again.

On Dec 5, 2007, at 4:36 PM, Michael Houghton wrote:


Howdy!

On Dec 5, 2007, at 12:36 PM, Dennis Putnam wrote:

I am trying to install Net::SFTP and the install SEEMS to have  
worked. However, when I try to open a new connection I get the  
following errors:


Key class 'Net::SSH::Perl::Key::DSA' is unsupported: MIME::Base64  
object version 3.05 does not match bootstrap parameter 3.07 at / 
System/Library/Perl/5.8.6/darwin-thread-multi-2level/XSLoader.pm  
line 92.
Compilation failed in require at /Library/Perl/5.8.6/Net/SSH/Perl/ 
Key/DSA.pm line 13.
BEGIN failed--compilation aborted at /Library/Perl/5.8.6/Net/SSH/ 
Perl/Key/DSA.pm line 13.

Compilation failed in require at (eval 32) line 1.
BEGIN failed--compilation aborted at (eval 32) line 1.

Did the install not tell me about a needed prereq or did the  
install actually fail for some reason. I am pretty much at a loss  
as to what to do. Thanks.


I'm not sure, but I think I ran into something like this. I went
and did an install in MIME::Base64. That seemed to clear it up.
It may be something weird in MIME::Base64.

yours,
Michael

--
Michael and MJ Houghton | Herveus d'Ormonde and Megan O'Donnelly
[EMAIL PROTECTED]   | White Wolf and the Phoenix narrowwares
Bowie, MD, USA  | http://whitewolfandphoenix.com
Proud member of the SCA Internet Whitewash Squad






Installing Net::SFTP

2007-12-05 Thread Dennis Putnam
I am trying to install Net::SFTP and the install SEEMS to have  
worked. However, when I try to open a new connection I get the  
following errors:


Key class 'Net::SSH::Perl::Key::DSA' is unsupported: MIME::Base64  
object version 3.05 does not match bootstrap parameter 3.07 at / 
System/Library/Perl/5.8.6/darwin-thread-multi-2level/XSLoader.pm line  
92.
Compilation failed in require at /Library/Perl/5.8.6/Net/SSH/Perl/Key/ 
DSA.pm line 13.
BEGIN failed--compilation aborted at /Library/Perl/5.8.6/Net/SSH/Perl/ 
Key/DSA.pm line 13.

Compilation failed in require at (eval 32) line 1.
BEGIN failed--compilation aborted at (eval 32) line 1.

Did the install not tell me about a needed prereq or did the install  
actually fail for some reason. I am pretty much at a loss as to what  
to do. Thanks.

cpan: errors installing Net::SFTP

2006-03-29 Thread Steve Axthelm
Trying to get Net::SFTP installed in the standard Apple perl
distribution (5.8.6) on OS 10.4.5.

Seems to fail with (at least) Math::GMP. Trying to install Math::GMP on
its own fails as well. What I think are the relevant cpan messages
below. Any tips would greatly appreciated.

TIA,

-Steve


+
install Net::SFTP
+
[...]
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e
test_harness(0, 'blib/lib', 'blib/arch') t/*.t
t/01-compile.ok  
t/02-buffer..Can't locate Math/GMP.pm in @INC (@INC contains:
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/arch
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at
t/02-buffer.t line 9.
BEGIN failed--compilation aborted at t/02-buffer.t line 9.
# Looks like your test died before it could output anything.
t/02-buffer..dubious 
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-19
Failed 19/19 tests, 0.00% okay
t/03-packet..Can't locate Math/GMP.pm in @INC (@INC contains:
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/arch
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6
/Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/
SSH1MP.pm line 7.
BEGIN failed--compilation aborted at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util/
SSH1MP.pm line 7.
Compilation failed in require at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Util.pm
line 56.
BEGIN failed--compilation aborted at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/Key/
RSA1.pm line 6.
Compilation failed in require at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/SSH1.pm
line 13.
BEGIN failed--compilation aborted at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl/SSH1.pm
line 13.
Compilation failed in require at
/Users/steve/.cpan/build/Net-SSH-Perl-1.30/blib/lib/Net/SSH/Perl.pm line
54.
# Looks like your test died before it could output anything.
t/03-packet..dubious 
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t/04-config..ok  
t/05-cipher..ok  
t/06-circularok  
Failed Test   Stat Wstat Total Fail  Failed  List of Failed

t/02-buffer.t2   51219   38 200.00%  1-19
t/03-packet.t2   51210   20 200.00%  1-10
Failed 2/6 test scripts, 66.67% okay. 29/116 subtests failed, 75.00%
okay.
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK