Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Net::SFTP Install Fails

by SheridanCat (Pilgrim)
on May 31, 2006 at 21:05 UTC ( [id://552931]=perlquestion: print w/replies, xml ) Need Help??

SheridanCat has asked for the wisdom of the Perl Monks concerning the following question:

I've spent a great deal of time trying to install Net::SFTP on a couple Linux boxes and I think I've run up against a brick wall.

The primary problem seems to be with Math::Pari. When I attempt the install Math::Pari using CPAN, I get a fairly quiet failure. When I grab the tarball and attempt a command line install, I get this:

cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PRE +FIX="" OPTIMIZE="-O2 -g -pipe -m32 -march=i386 -mtune=pentium4" PASTH +RU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/root/Math-Pari-2.010704/libPARI' make[1]: *** No rule to make target `../../pari-2.3.0/src/kernel/ix86/ +level0.h', needed by `pariinl.h'. Stop. make[1]: Leaving directory `/root/Math-Pari-2.010704/libPARI' make: *** [libPARI/libPARI.a] Error 2
I have PARI/GP 2.3.0 installed and the the source exists. The Math::Pari Makefile appears to be pointing to the right directory for the pari source. It seems to be choking on:
make[1]: *** No rule to make target `../../pari-2.3.0/src/kernel/ix86/ +level0.h', needed by `pariinl.h'. Stop.
I've confirmed that level0.h does NOT exist in that directory.

The install has been attempted on a Ubuntu 5.10 install and a corporate machine that is running some newish version of Redhat.

Googling for the problem hasn't been very productive; any solution I've tried hasn't remedied the situation.

Replies are listed 'Best First'.
Re: Net::SFTP Install Fails
by salva (Canon) on May 31, 2006 at 22:12 UTC
    If you don't need to use password authentication (and you really shouldn't!), you can use Net::SFTP::Foreign that uses the native ssh client instead of Net::SSH::Perl to connect to the remote server and so doesn't require any extra modules.

    The development version offers a very improved API with support for high level functions as find, rget, rput... though some serious bugs could still exist (bug reports are very welcome!).

    Another good alternative is Net::SSH2.

      Thanks for the suggestion, salva, I'll try that. I'm just need key auth, so that will hopefully work out.
Re: Net::SFTP Install Fails
by socketdave (Curate) on May 31, 2006 at 21:33 UTC
    Sorry, misread the OP...

    Did you let the Makefile.PL grab Pari for you or did you install it individually?
      I did both, actually. Same results either way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://552931]
Approved by Joost
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found