[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl module build+install process

From: Ludovic Courtès
Subject: Re: Perl module build+install process
Date: Mon, 11 Aug 2014 18:25:36 +0200
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Tom Molesworth <address@hidden> skribis:

> On 11 Aug 2014 21:37, "Ludovic Courtès" <address@hidden> wrote:
>> Tom Molesworth <address@hidden> skribis:
>> > Since Perl uses an include path, much like the $PATH environment
> variable
>> > for finding executables, this seems to imply that you'd need every
> module
>> > added to the Perl include path (via $PERL5LIB). This would quickly
> become
>> > unwieldy as more modules are installed.
>> Normally, ‘guix package --install’ and ‘guix package --search-paths’
>> would suggest adding ~/.guix-profile/lib/perl/... to $PERL5LIB, which
>> should solve the problem, no?
> If that means there's just a single extra PERL5LIB entry rather than one
> per installed module, yes - that should be fine.


> The output we'd seen looked like each module ended up in a separate path,
> but maybe we were misinterpreting, or a later step copies/symlinks to a
> common library path.

Well, ~/.guix-profile/lib/perl5 contains symlinks that make the union of
all the Perl packages installed in the user’s profile.

> Note that this is a separate concern to the install path not matching the
> final location of the files; the provided installation path at build time
> is used in some modules (XML::SAX in this case). Passing an installation
> path at build time, then moving the files afterwards, is likely to cause
> errors at runtime.

Files aren’t moved after installation.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]