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.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |