At 10:31 PM -0700 7/12/02, Alder wrote:
>Sorry all this newbie clutter, but I would appreciate some guidance in selecting the 
>proper module images to INSTALL.  I;m following along with the README.VMS file in the 
>Perl 5.6.1 distrib. and working on an Alpha. It mentions that if I use modules (I 
>intend to at least) then installing the images as known images might be advantageous. 
> OK, but I notice there are two versions of the base modules in PERL_ROOT: one in 
>PERL_ROOT:[LIB.AUTO] and one in PERL_ROOT:[LIB.VMS-AXP.5_6_1.AUTO]. They seem to be 
>the same image, but what do I know :-(
>
>Does it matter which of these pairs of images is INSTALLed?  Why?

I think the architecture-specific ones are the ones that actually get
used.  Things are set up so that you can have both VAX and Alpha
installations share the same root in a mixed-architecture cluster
(dunno if anyone actually does that).  The way to know for sure which
ones are used is to do a SHOW DEVICE/FILE while an extension is
loaded or go into ANALYZE/SYSTEM and do a SHOW PROCESS/CHANNEL/ID=nnn
where nnn is the pid of a process that has the extension currently
loaded.

Of course the more Perlish way to find out where Perl is looking for
extensions is to look at the ordering of @INC:

$ perl -e "print join(""\n"",@INC);"
perl_root:[lib.VMS_AXP.5_8_0]
perl_root:[lib]
perl_root:[lib.site_perl.VMS_AXP]
perl_root:[lib.site_perl]
/perl_root/lib/site_perl
..


I think you know this but it's worth reiterating that installing a
shareable image (aka dynamic library, run-time library, DLL, etc.) as
a known image is not necessary to get things working; it's a
performance tuning issue best left to the point where you have a
working application and want to optimize its performance in a
production environment.  It's a bit unfortunate that the word
"install" is used here since it lends to confusion with other
meanings of the word, such as simply getting the software onto the
system in the first place.
-- 
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to