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

Please forget about 'inmabisa'. I edited it.
  • Comment on Re^2: Not able to load module though @INC contains it

Replies are listed 'Best First'.
Re^3: Not able to load module though @INC contains it
by bellaire (Hermit) on Nov 30, 2009 at 14:29 UTC
    You edited what? ... In any event, it seems the problem is with your loadable module, not with @INC. So it's not terribly relevant, but having misleading information in the data you provided is certainly distracting.
      That is the homepath name. So I changed it.
      Leaving that aside..
      I found another .pm and PERL5LIB is set to that.
      Now getting the following error.
      /export/home/inmabisa/STAF/lib/perl510> ls libPLSTAF.so /export/home/inmabisa/STAF/lib/perl510> perl -e "use PLSTAF;" Can't load '/export/home/inmabisa/STAF/lib/perl58/libPLSTAF.so' for mo +dule PLSTAF: ld.so.1: perl: fatal: /export/home/inmabisa/STAF/lib/per +l58/libPLSTAF.so: wrong ELF class: ELFCLASS64 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.

        You seem to have multiple installations of Perl (—> perl510 vs. perl58), and maybe something is getting mixed up...  What version does perl -v report?

        Also note that major Perl versions such as 5.8 vs. 5.10 are generally not binary (ABI) compatible, independent of potential issues with ELFCLASS64 (i.e. 32 vs. 64 bit).