Hi,

With many debugging I finally got stuck at C compiler problem in installing Net::SSH2 module.
My ENV:
bash-3.00# bash-3.00# env HZ= TERM=xterm SHELL=/sbin/sh NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 OLDPWD=/export/perl LD_LIBRARY_PATH=/opt/oracle/product/9.2.0/lib ORACLE_SID=PV ORACLE_BASE=/opt/oracle TNS_ADMIN=/opt/oracle/product/9.2.0/network/admin PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/sfw/bin:/bin:/u +sr/ccs/bin:/usr/sfw/bin MAIL=/var/mail/root PWD=/export/perl/Net-SSH2-0.40 LANG=C TZ=Asia/Calcutta SHLVL=1 HOME=/ LOGNAME=root EXTPROC_DLLS=ONLY:/opt/oracle/product/9.2.0/lib/libpvmextc.so CC=gcc ORA_NLS33=/opt/oracle/product/9.2.0/ocommon/nls/admin/data ORACLE_HOME=/opt/oracle/product/9.2.0 _=/usr/bin/env
GCC version:
bash-3.00# gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3 +.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without- +gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages= +c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Problem with Net::SSH2
bash-3.00# perl Makefile.PL Subroutine checklibs redefined at inc/Module/Install/CheckLib.pm line +11. Subroutine assertlibs redefined at inc/Module/Install/CheckLib.pm line + 25. Subroutine _author_side redefined at inc/Module/Install/CheckLib.pm li +ne 39. The libssh2 library is required by this module. If you don't have it, + you can download it from http://www.libssh2.org; you may also need OpenSSL, wh +ich can be obtained from http://www.openssl.org. Debian: sudo aptitude install libssh2-1-dev OpenSUSE: sudo zypper in libssh2-1 libssh2-devel You can pass your libssh2 lib and include dirs on the command line. E. +g.: perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include Couldn't find your C compiler Compilation failed in require at inc/Module/Install/CheckLib.pm line 1 +7.
Any suggestions?

Thanks,
Ashok

In reply to Problem with Net::SSH2 on Solaris by ashok.g

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.