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

This is perl, v5.8.4 built for sun4-solaris-64int (with 31 registered patches, see perl -V for more detail)
  • Comment on Re^6: Not able to load module though @INC contains it

Replies are listed 'Best First'.
Re^7: Not able to load module though @INC contains it
by almut (Canon) on Nov 30, 2009 at 15:37 UTC

    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';
      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.