in reply to Re^6: Not able to load module though @INC contains it
in thread Not able to load module though @INC contains it

It looks like your perl is 32-bit and you installed the 64-bit version of STAF (that's the reason for the "wrong ELF class: ELFCLASS64").

The '64' in sun4-solaris-64int stands for 64-bit integer support (i.e. compile time option USE_64_BIT_INT, not a 64-bit binary).  Try

$ file /usr/bin/perl

On my Solaris 10 box, I do get (for the 'system' perl, which is v5.8.4):

/usr/bin/perl: ELF 32-bit MSB executable SPARC Version 1, dynamically + linked, stripped

archname is

$ /usr/bin/perl -V:archname archname='sun4-solaris-64int';

Replies are listed 'Best First'.
Re^8: Not able to load module though @INC contains it
by chilukuri_perl (Novice) on Nov 30, 2009 at 15:51 UTC
    Yes. You are correct.
    It is 32 bit perl.
    /export/home/STAF> file /usr/bin/perl /usr/bin/perl: ELF 32-bit MSB executable SPARC Version 1, dynamically + linked, stripped
    but isainfo -kv shows it is system is 64 bit.
    /export/home/STAF> isainfo -kv 64-bit sparcv9 kernel modules
    What is the solution now? Do I need to install 32 bit STAF?
      Do I need to install 32 bit STAF?

      That's probably the easiest option, unless it creates incompatibilities with other software components... (I would just try).  The other option would be to build/install a 64-bit perl.

        32 bit version is installed. Now getting the following error.
        /export/home/STAF/lib> ls *.so* PYSTAF.so libSTAFDSLS.so libSTAFPool.so libssl. +so.0.9.8 libJSTAF.so libSTAFEXECPROXY.so libSTAFTCP.so libstdc +++.so.2.10.0 libJSTAFSH.so libSTAFLIPC.so libSTAFZip.so libPLSTAF.so libSTAFLog.so libSTAFZlib.so libSTAF.so libSTAFMon.so libcrypto.so.0.9.8 /export/home/STAF/lib> file libPLSTAF.so libPLSTAF.so: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamicall +y linked, stripped /export/home/STAF/lib> perl -e "use PLSTAF;" Can't load '/export/home/STAF/lib/libPLSTAF.so' for module PLSTAF: ld. +so.1: perl: fatal: libperl.so: open failed: No such file or directory + at /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. (romulus:ER:EMTE1) /export/home/STAF/lib>