Hola Monks-

I am trying to install Cpan version of Net::SSH::Perl on a Solaris 10 system with Perl 5.10 from openCSW built with Sunpro compiler. I have access to the SunStudio 12.2 compiler. Should be close right?

The issue is in including the headers. I am wondering if there are compile flags for SunStudio to build this.

Example of errors:

/opt/csw/bin/perl /opt/csw/share/perl/5.10.1/ExtUtils/xsubpp -typemap + /opt/csw/ share/perl/5.10.1/ExtUtils/typemap -typemap typemap Blowfish.xs > Blow +fish.xsc & & mv Blowfish.xsc Blowfish.c /opt/SUNWspro/bin/cc -c -D_REENTRANT -xO3 -m32 -xarch=386 -xnorunpa +th -I/opt/ csw/bdb48/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSE +T_BITS=64 -xO3 -m32 -xarch=386 -xnorunpath -DVERSION=\"2.12\" -DXS_VERSION=\ +"2.12\" -K PIC "-I/opt/csw/lib/perl/5.10.1/CORE" Blowfish.c "/opt/csw/lib/perl/5.10.1/CORE/perl.h", line 605: cannot find include +file: <sys /types.h> "/opt/csw/lib/perl/5.10.1/CORE/perl.h", line 616: cannot find include +file: <std arg.h> "/opt/csw/lib/perl/5.10.1/CORE/perl.h", line 636: cannot find include +file: <cty pe.h> "/opt/csw/lib/perl/5.10.1/CORE/perl.h", line 648: cannot find include +file: <loc ale.h> "/opt/csw/lib/perl/5.10.1/CORE/perl.h", line 665: cannot find include +file: <set jmp.h> "/opt/csw/lib/perl/5.10.1/CORE/perl.h", line 671: cannot find include +file: <sys /param.h> .......

I have googled madly and tried to noodle compiler docs without avail. Its been quite a while since I've done something like this and I feel like I am missing the solution, document, pointer to build Net::SSH::Perl.

Solution

For SunStudio compiler make sure to install the complete package - bins and lib are in separate packages

For compilation set your path and lib path like so

PATH=/usr/bin:/sbin:/usr/local/bin LC_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

For Solaris 10 OS make sure to install the full developers version to have the headers and libraries needed to intall Net::SSH::Perl

Math::Pari do not use pari-2.5 it is not supported for Sol10. I used 2.3 with success.


In reply to SOLVED: Net::SSH::Perl compile with SunStudio 12.2 instead of SunPro by srp0010

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.