Hi and thanks for your response. Here's what I've got

> uname -a
Linux 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux

1. Downloaded Net-SSH2-0.28 from CPAN (has dependencies on openssl and libssh
2. Downloaded and installed openssl-0.9.8l from http://www.openssl.org. All worked OK
3. Downloaded libssh2-1.2.2 from http://www.libssh2.org/
4. Untarred and then:

./configure --with-libssl-prefix=/usr/local/ssl (seemed to go through fine)
make

This is where it goes wrong. It runs through and exits with this:

/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -o ssh2 ssh2.o ../../src/libssh2.la
libtool: link: gcc -g -O2 -o .libs/ssh2 ssh2.o ../../src/.libs/libssh2.so -L/usr/local/ssl/lib -lssl -lcrypto -lz -Wl,-rpath -Wl,/usr/local/lib
../../src/.libs/libssh2.so: undefined reference to `dlerror'
../../src/.libs/libssh2.so: undefined reference to `dlclose'
../../src/.libs/libssh2.so: undefined reference to `dlopen'
../../src/.libs/libssh2.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make2: *** ssh2 Error 1
make2: Leaving directory `/tmp/libssh2-1.2.2/example/simple'
make1: *** all-recursive Error 1
make1: Leaving directory `/tmp/libssh2-1.2.2/example'
make: *** all-recursive Error 1
Any guidance greatly appreciated. John

In reply to Re^2: Running remote commands (Net::SSH2) by wilko
in thread Running remote commands (Net::SSH2) by wilko

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.