On Thu, Aug 06, 2020 at 04:22:33AM +0100, Ken Moffat via lfs-dev wrote:
> On Thu, Aug 06, 2020 at 10:31:52AM +0800, Xi Ruoyao via lfs-dev wrote:
> > On 2020-08-05 22:03 +0100, Ken Moffat via lfs-dev wrote:
> > > On Thu, Aug 06, 2020 at 03:57:29AM +0800, Xi Ruoyao via lfs-dev wrote:
> > > > On 2020-08-05 19:53 +0100, Ken Moffat via lfs-dev wrote:
> > 
> > I prefer to put everything into /usr/lib/perl5, instead of using
> > /usr/share/perl5.  Like:
> > 
> > sh Configure -des                                         \
> >              -Dprefix=/usr                                \
> >              -Dvendorprefix=/usr                          \
> >              -Dprivlib=/usr/lib/perl5/5.32/core_perl      \
> >              -Darchlib=/usr/lib/perl5/5.32/core_perl      \
> >              -Dsitelib=/usr/lib/perl5/5.32/site_perl      \
> >              -Dsitearch=/usr/lib/perl5/5.32/site_perl     \
> >              -Dvendorlib=/usr/lib/perl5/5.32/vendor_perl  \
> >              -Dvendorarch=/usr/lib/perl5/5.32/vendor_perl \
> >              -Dman1dir=/usr/share/man/man1                \
> >              -Dman3dir=/usr/share/man/man3                \
> >              -Dpager="/usr/bin/less -isR"                 \
> >              -Duseshrplib                                 \
> >              -Dusethreads
> 
> Thanks!  After sending my previous post I realised I'd been looking
> at the wrong log and got myself confused - the plain perl in
> /usr/share started appearing in /usr/lib/perl5/5.32.0/ when the
> privlib define was removed, so obviously the old-style location is
> the default for that when perl is in /usr and it should NOT be in
> /usr/share.
> 
> So, I had independently come up with everything you have and was
> just about to try it.
> 

That works nicely.  As well as LFS (perl itself, XML-Parser) I've
manually installed a few modules (Try-Tiny, Module-Build,
Sub-Identify, SUPER, Test-Warnings, Test-MockModule, Archive-Zip)
and then I used cpan (used its automated setup option) to install
Parse::Yapp.

I've also install git using a sed to put the modules into
/usr/lib/perl5/5.32/site_perl..

All of perl itself is in /usr/lib/perl5/5.32/core_perl, all the
extra modules are in /usr/lib/perl5/5.32/site_perl).

I think we ought to change the book to do this, but I'm not sure
everyone has read htis thread - I'll raise a ticket.

ĸen
-- 
Juliet's version of cleanliness was next to godliness, which was to
say it was erratic, past all understanding and was seldom seen.
                          -- Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to