|
Posted by rhxk on January 12, 2005, 11:35 pm
Please log in for more thread options
It's a total b*tch to install Net::SFTP module.
I've tried to install it via CPAN and it fails.
Has anyone done it successfully? If so, could plz tell me
how? I'd appreciate it alot....thanx...
I'm on a RedHat linux machine. perl is 5.8.0
|
|
Posted by Jim Keenan on January 14, 2005, 2:50 am
Please log in for more thread options
rhxk@yahoo.com wrote:
> It's a total b*tch to install Net::SFTP module.
I concur. After reading your message this morning, I tried to do so
using the cpan shell. I came to 3 question/prompts; in each case I
chose the default answer. Somehow I made it to 'make', but 'make test'
failed at:
t/01-load........Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC
contains: ...
Had to leave for work at that point. But a preliminary look at docs
suggested that, while Net::SFTP may be "pure Perl," its major
prerequisite, Net::SSH::Perl, is built on a mountain of other
prerequisites, most of which are *not* pure Perl.
Now that I'm back home, search.cpan.org seems to be down, so it's not
easy to look at the MANIFESTs and READMEs for this module and its
prerequisite.
So next I tried 'install Net::SSH::Perl'. For reasons I don't
understand, this time the process identified all the missing
prerequisites and proceeded to try to install those that were either
missing or "outdated." The process took longer than any other
installation than Perl itself -- but Perl got installed; this didn't.
It took more than 5 minutes to install Math::Pari, but eventually
succeeded. It then turned to Crypt::IDEA ... and stopped dead. I
eventually bombed out with Cntrl-C. Then tried 'install Crypt::IDEA',
figuring that if it worked I would re-try 'install Net::SSH::Perl'. It
failed at this point:
Writing Makefile for Crypt::IDEA
cp IDEA.pod blib/lib/Crypt/IDEA.pod
cp IDEA.pm blib/lib/Crypt/IDEA.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.4/ExtUtils/typemap -typemap typemap IDEA.xs >
IDEA.xsc && mv IDEA.xsc IDEA.c
Please specify prototyping behavior for IDEA.xs (see perlxs manual)
cc -c -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Os -DVERSION="1.02" -DXS_VERSION="1.02"
"-I/usr/local/lib/perl5/5.8.4/darwin-2level/CORE" IDEA.c
cc -c -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Os -DVERSION="1.02" -DXS_VERSION="1.02"
"-I/usr/local/lib/perl5/5.8.4/darwin-2level/CORE" _idea.c
_idea.c:8:20: endian.h: No such file or directory
make: *** [_idea.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
At this point, I throw up my hands.
jimk
|
|
Posted by Jussi Mononen on January 21, 2005, 9:43 pm
Please log in for more thread options >> It's a total b*tch to install Net::SFTP module.
>
> I concur. After reading your message this morning, I tried to do so using
> the cpan shell. I came to 3 question/prompts; in each case I chose the
> default answer. Somehow I made it to 'make', but 'make test' failed at:
<snip>
> At this point, I throw up my hands.
>
> jimk
It is quite difficult, but it is possible. I have installed and used
Net::SFTP on Solaris (8&9), OSF1, HP-UX.11, HP-UX.11.11, AIX (5.2) and on
several flavours of Linux. Linux by the way is the easiest, most of the
distro's managed compiled and install Net::SFTP with the first try.
You have to dig deep, because the mathematical libraries involved are quite
complex (always use C-code, never assembler optimisation) and you have to
use portable code whenever possible. Crypt::RSA was the only module that I
was unable to compile on every platform, but I didn't need it so I could
pass it.
I have to admit that the first platform that I tried was the user-friendly
Solaris and it took almost 3 weeks to get it to work, after that the
compilation was a lot easier to duplicate on other platforms.
Net::SFTP is very useful module. Just remember that some functions throw
warnings instead of returning a value that indicates a failure. Eval-blocks
are handy...
/jUSSi
|
| Similar Threads | Posted | | Help with Net::SFTP when sftp on unix works. | September 21, 2004, 11:14 am |
| Net::SFTP on Windows | March 21, 2005, 9:55 pm |
| Net::SFTP::Attributes | October 23, 2006, 11:56 am |
| problem using Net::SFTP with pubkey | September 1, 2005, 4:29 am |
| Net::SFTP port problem | July 26, 2004, 2:18 pm |
| Net::SFTP transfer speed | December 14, 2004, 8:14 am |
| Aargh. SFTP problems | March 15, 2005, 2:35 pm |
| net::sftp connection close | May 4, 2006, 6:27 am |
| NET::SFTP - how to close connection | September 28, 2006, 7:22 am |
| password in SFTP::Foreign | August 23, 2007, 11:48 am |
|