Hi, all --

I have a heterogeneous perl installation requirement and I'm just pulling
my hair out.  I've had trouble ./Configure-ing and compiling under HP-UX
and my @INC doesn't seem to be right under Solaris.

I have a perl structure about like

  $TOP/
    perl/
      5.6.1/
        SunOS/
          5/
            8/
              lib/
        lib/
      modules/
        SunOS/
          5/
            8/
              lib/
        lib/

where downloaded modules are supposed to go into the modules tree.
Having set my conf options in Config.pm I get some modules installed
happily in modules/lib and all works well.  There appears to be no way
to specify ARCHLIB in CPAN to tell the module that system-specific
code should go in

  modules/SunOS/5/8/lib

(which is in @INC) instead of in

  modules/lib/SunOS/5/8

(which, as you can guess, isn't).  [The tree is this hairy because I
have perl installed for multiple revisions of multiple OSs running on
multiple types of hardware.]  Is there a way to tell modules to
install in <OS>/<rev>/lib instead of in lib/<OS>/<rev>, or do I have
to reinstall all of my perls?

Worse yet, I rebuilt a copy of perl to look in lib/<OS>/<rev> and it
*still* didn't find the module.  To wit:

  bash-2.03$
  bash-2.03$ pwd
  /appmnt/prod/IT/Repository
  bash-2.03$ find perl | grep ReadKey
  perl/modules/lib/SunOS/5/8/sun4u/auto/Term/ReadKey
  perl/modules/lib/SunOS/5/8/sun4u/auto/Term/ReadKey/ReadKey.so
  perl/modules/lib/SunOS/5/8/sun4u/auto/Term/ReadKey/ReadKey.bs
  perl/modules/lib/SunOS/5/8/sun4u/auto/Term/ReadKey/autosplit.ix
  perl/modules/lib/SunOS/5/8/sun4u/auto/Term/ReadKey/.packlist
  perl/modules/lib/SunOS/5/8/sun4u/Term/ReadKey.pm
  perl/5.6.1/man/man3/Term::ReadKey.3
  bash-2.03$
  bash-2.03$ cd /nfs/apps41/prod/IT/Repository/Sources/perl/p561-s-5-8/
  bash-2.03$
  bash-2.03$ ./perl -e 'foreach (@INC) {print "$_\n"};'
  /appmnt/prod/IT/Repository/perl/5.6.1/lib/SunOS/5/8/sun4u
  /appmnt/prod/IT/Repository/perl/5.6.1/lib
  /appmnt/prod/IT/Repository/perl/itt/lib/SunOS/5/8/sun4u
  /appmnt/prod/IT/Repository/perl/itt/lib
  /appmnt/prod/IT/Repository/perl/itt/lib
  /appmnt/prod/IT/Repository/perl/modules/lib/SunOS/5/8/sun4u
  /appmnt/prod/IT/Repository/perl/modules/lib
  /appmnt/prod/IT/Repository/perl/modules/lib
  .
  bash-2.03$
  bash-2.03$ ./perl -e 'require Term::Readkey;'
  Can't locate Term/Readkey.pm in @INC (@INC contains: 
/appmnt/prod/IT/Repository/perl/5.6.1/lib/SunOS/5/8/sun4u 
/appmnt/prod/IT/Repository/perl/5.6.1/lib 
/appmnt/prod/IT/Repository/perl/itt/lib/SunOS/5/8/sun4u 
/appmnt/prod/IT/Repository/perl/itt/lib /appmnt/prod/IT/Repository/perl/itt/lib 
/appmnt/prod/IT/Repository/perl/modules/lib/SunOS/5/8/sun4u 
/appmnt/prod/IT/Repository/perl/modules/lib 
/appmnt/prod/IT/Repository/perl/modules/lib .) at -e line 1.

You can see that $TOP mentioned above is /appmnt/... and that perl is one
of the tools installed.  I have perl in perl/5.6.1, internally-developed
code in perl/itt, and downloaded modules in perl/modules (well, I *want*
that, but I'm not confident that I *have* it yet!).  What's really
confusing is that Term/Readkey.pm *is* in modules/lib/SunOS/5/8/sun4u
and yet perl says it can't find it.


TIA & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg24410/pgp00000.pgp
Description: PGP signature

Reply via email to