[30220] in Perl-Users-Digest
Perl-Users Digest, Issue: 1463 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Apr 22 16:52:38 2008
Date: Tue, 22 Apr 2008 13:52:30 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 22 Apr 2008 Volume: 11 Number: 1463
Today's topics:
Perl's @INC - am I missing the point? <andrew.fabbro@gmail.com>
Re: Perl's @INC - am I missing the point? xhoster@gmail.com
Re: Perl's @INC - am I missing the point? <andrew.fabbro@gmail.com>
Re: Perl's @INC - am I missing the point? <ben@morrow.me.uk>
Re: Perl's @INC - am I missing the point? <ben@morrow.me.uk>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 16 Apr 2008 21:02:53 -0700 (PDT)
From: Andrew Fabbro <andrew.fabbro@gmail.com>
Subject: Perl's @INC - am I missing the point?
Message-Id: <307a0968-27b9-49c6-9182-00cb92df4689@s50g2000hsb.googlegroups.com>
When building (compiling) perl, I wanted to include a directory where
we install our local modules. So I built perl with -Dotherlibdirs=/app/
common/oracle/perl/local.
Later, I installed various modules with PREFIX=/app/common/oracle/perl/
local
However, perl can't find them (and yes, I checked and /app/common/
oracle/perl/local is in @INC). However, if I put this in @INC:
/app/common/oracle/perl/local/lib/site_perl/5.8.8/PA-RISC2.0-LP64
Then it finds things and works just fine.
But what the...heck is the point of -Dotherlibdirs if what you point
it at doesn't work!? So should I rebuild perl with -Dotherlibdirs set
to "/app/common/oracle/perl/local/lib/site_perl/5.8.8/PA-RISC2.0-
LP64"? The whole point of this exercise was to avoid having to
manually "use lib"...
Or perhaps I'm just confused...
------------------------------
Date: 17 Apr 2008 04:55:56 GMT
From: xhoster@gmail.com
Subject: Re: Perl's @INC - am I missing the point?
Message-Id: <20080417005600.939$G7@newsreader.com>
Andrew Fabbro <andrew.fabbro@gmail.com> wrote:
> When building (compiling) perl, I wanted to include a directory where
> we install our local modules. So I built perl with -Dotherlibdirs=/app/
> common/oracle/perl/local.
>
> Later, I installed various modules with
> PREFIX=/app/common/oracle/perl/local
For some reason, PREFIX automatically gets /lib added to the end before it
gets used for the location of installing the modules. I'm sure this makes
complete sense to those people who understand this stuff, but I am not one
of them.
>
> However, perl can't find them (and yes, I checked and /app/common/
> oracle/perl/local is in @INC). However, if I put this in @INC:
>
> /app/common/oracle/perl/local/lib/site_perl/5.8.8/PA-RISC2.0-LP64
>
> Then it finds things and works just fine.
It would probably work fine if you just put in
/app/common/oracle/perl/local/lib
>
> But what the...heck is the point of -Dotherlibdirs if what you point
> it at doesn't work!? So should I rebuild perl with -Dotherlibdirs set
> to "/app/common/oracle/perl/local/lib/site_perl/5.8.8/PA-RISC2.0-
> LP64"? The whole point of this exercise was to avoid having to
> manually "use lib"...
I think you should rebuild with -Dotherlibdirs set to
/app/common/oracle/perl/local/lib
>
> Or perhaps I'm just confused...
You and I both.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
------------------------------
Date: Thu, 17 Apr 2008 01:03:25 -0700 (PDT)
From: Andrew Fabbro <andrew.fabbro@gmail.com>
Subject: Re: Perl's @INC - am I missing the point?
Message-Id: <fcd91516-b018-4a42-aca5-64f85a00d002@b1g2000hsg.googlegroups.com>
On Apr 16, 9:55 pm, xhos...@gmail.com wrote:
> It would probably work fine if you just put in
> /app/common/oracle/perl/local/lib
Alas...nope.
------------------------------
Date: Thu, 17 Apr 2008 13:14:03 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Perl's @INC - am I missing the point?
Message-Id: <bhrjd5-qki.ln1@osiris.mauzo.dyndns.org>
Quoth Andrew Fabbro <andrew.fabbro@gmail.com>:
> When building (compiling) perl, I wanted to include a directory where
> we install our local modules. So I built perl with -Dotherlibdirs=/app/
> common/oracle/perl/local.
>
> Later, I installed various modules with PREFIX=/app/common/oracle/perl/
> local
>
> However, perl can't find them (and yes, I checked and /app/common/
> oracle/perl/local is in @INC). However, if I put this in @INC:
>
> /app/common/oracle/perl/local/lib/site_perl/5.8.8/PA-RISC2.0-LP64
>
> Then it finds things and works just fine.
You need to use LIB= for MakeMaker rather than PREFIX=. PREFIX is a
little weird (for historical reasons); it means 'this is where my whole
perl tree is installed', so it will attempt to create a whole lib/ man/
bin/ tree matching the one your perl is installed into, including
site_perl and so on.
Ben
------------------------------
Date: Thu, 17 Apr 2008 13:47:04 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Perl's @INC - am I missing the point?
Message-Id: <8ftjd5-ubo.ln1@osiris.mauzo.dyndns.org>
Quoth Ben Morrow <ben@morrow.me.uk>:
>
> Quoth Andrew Fabbro <andrew.fabbro@gmail.com>:
> > When building (compiling) perl, I wanted to include a directory where
> > we install our local modules. So I built perl with -Dotherlibdirs=/app/
> > common/oracle/perl/local.
> >
> > Later, I installed various modules with PREFIX=/app/common/oracle/perl/
> > local
> >
> > However, perl can't find them (and yes, I checked and /app/common/
> > oracle/perl/local is in @INC). However, if I put this in @INC:
> >
> > /app/common/oracle/perl/local/lib/site_perl/5.8.8/PA-RISC2.0-LP64
> >
> > Then it finds things and works just fine.
>
> You need to use LIB= for MakeMaker rather than PREFIX=. PREFIX is a
> little weird (for historical reasons); it means 'this is where my whole
> perl tree is installed', so it will attempt to create a whole lib/ man/
> bin/ tree matching the one your perl is installed into, including
> site_perl and so on.
Also, note that perl will only search arch-specific subdirs of
otherlibdirs if they existed when Configure was run. So you need to make
sure /app/common/oracle/perl/local/PA-RISC2.0-LP64 exists before you run
Configure.
Ben
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 1463
***************************************