Hi,

I am trying to get Net::SSH2 to install on Fedora Core 4 Linux.

I have installed OpenSSL and libssh2 which are pre-requisites for Net::SSH2.

I then attempt to make Net::SSH2 using the standard method:

  1. perl Makefile.PL
  2. make
  3. make test

The perl Makefile.PL step and the make step work correctly. However, make test yields the following error:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/Net-SSH2.... # Failed test 'use Net::SSH2;' # in t/Net-SSH2.t at line 19. # Tried to use 'Net::SSH2'. # Error: Can't load '/home/pjirak/Downloads/Net-SSH2/Net-SSH2-0.0 +9/blib/arch/auto/Net/SSH2/SSH2.so' for module Net::SSH2: libssh2.so: +cannot open shared object file: No such file or directory at /usr/lib +/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230. # at (eval 3) line 2 # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at t/Net-SSH2.t line 19. &Net::SSH2::constant not defined at t/Net-SSH2.t line 22

I can do a force install Net::SSH2, however, after that I still get the same error when I try to run my Perl program that uses Net::SSH2.

I have looked on google and some other sources as well. I have found that others have had this problem on Fedora Core 4 Linux, however, I have not yet found a solution. A searched on perl monks. I have found nodes about Net::SSH2, but none about this problem. I've gone through some of the install notes, but haven't figured out if there is an install flag I need to use when making Net::SSH2 so that it can/will find the libssh2 when it is run.

Does any one know what I need to do to get Net::SSH2 to install on Fedora Core 4?

Has any one else had this problem?

Does any one have any ideas regarding compile flags that I need (but am missing) when I make Net::SSH2 to cause Net::SSH2 to find libssh2 when it runs?

Any help any one can provide would be useful.

Thanks


In reply to I can not get Net::SSH2 to install on Fedora Core 4 Linux by jira0004

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.