in reply to Running remote commands (Net::SSH2)

Is Net:SSH2 the way to go?

...yes....it is the module of choice

it complained about "libssh2.so: undefined reference to dlerror" amongst other similar errors.

...that probably means you don't have the libssh2 lib installed properly..... you may need to install whatever your distro calls the "development libs for SSH2"..... or you may need to check your version numbers....Net::SSH2 requires a basic libssh2 level.... make sure you have that compatibility

...also if you google for "libssh2.so: undefined reference to dlerror"..... you may find a fix for your linux distribution

...the most sure fireway to fix the problem, is to download the latest libssh2 and install it..... when and if it goes in problem free.... then retry the Net::SSH2 install


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re: Running remote commands (Net::SSH2)

Replies are listed 'Best First'.
Re^2: Running remote commands (Net::SSH2)
by wilko (Acolyte) on Dec 22, 2009 at 14:10 UTC
    Hi and thanks for your reply. I thought the whole point of compiling/installing this package was to install the libssh2.so (amongst other things)....so it can't be on my system as the Make fails.....

    ...or am i missing the point?

    Regards
    John
      am i missing the point?

      ....kind of, yes....... the libssh2 that we talk about is the c based library .... see ssh and ssh2

      ... there has been an evolution over the years from the original ( but problemsome) SSH to SSH2..... they have separate c libs that get installed at the system level..... the perl Makefile is failing because it is NOT finding that lib

      From the Net::SSH2 perl module's README file

      Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org)

      once you get that lib installed, try to rebuild the perl module....if it fails again, then come back with the new error message :-)

      .... fwiw, you may not even have ssh2 available to you on the computer you have, if it's yours, the install the libs from the libssh2.org, AND there are many other ways to access your system's ssh capabilities... find out what they are


      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku
        Sorry if i misled you but that's exactly what I'm trying to do.... i.e. install the libssh2 libraries that I downloaded from libssh2.org. It is this that I'm having problems with. I havent got to the part of installing Net::SSH2 yet because it has a dependency on libssh2.