Grupuri Google nu mai acceptă postările sau abonamentele noi Usenet. Conținutul anterior este în continuare vizibil.

Re: [install and use local::lib module]

10 afișări
Accesați primul mesaj necitit

Kang-min Liu

necitită,
15 feb. 2024, 18:00:0715 feb.
– begi...@perl.org

Maxim Abalenkov <maxim.a...@gmail.com> writes:

> Now everything works. But I still don’t understand the setup very
> well. What is the difference between the ‘.cpan’ and ‘perl5’
> directories? What is their purpose? Thank you and have a great day
> ahead!

The directory ~/.cpan/ is where the command `cpan` saves its local
states, intermediate files, download cache, configurations... etc.

The directory ~/perl5/ is a conventional place where local::lib-based
installations are stored. It is where local::lib code would look find
some receipts of what's installed inside and print out those env vars
as the mechnism to tell `perl` to also find modules under ~/perl5/.

--
Cheers,
Kang-min Liu

Mike

necitită,
17 feb. 2024, 20:15:0717 feb.
– begi...@perl.org, Maxim Abalenkov

Hello Maxim,

I say $HOME/perl5 (~/perl5) is where my
personally installed modules are located.
Actually in ~/perl5/lib/perl5/

I am less sure about $HOME/.cpan (~/.cpan),
but I think that is where the cpan settings
are stored.  But looking inside it suggests
it is more than just settings.


Mike F.
Houston, TX


On 2/15/24 04:23, Maxim Abalenkov wrote:
Dear all,

How are you? I re-read the README file of the local::lib module. There was one more command missing:

echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >>~/.bashrc

My new Perl settings in the .profile file are:

# Perl 5.38
export PATH=/usr/local/bin:$PATH
export PERL5LIB=$HOME/perl5/lib/perl5
eval `perl -I$HOME/perl5/lib/perl5 -Mlocal::lib`

Now everything works. But I still don’t understand the setup very well. What is the difference between the ‘.cpan’ and ‘perl5’ directories? What is their purpose? Thank you and have a great day ahead!

Best wishes,
Maxim

Maxim Abalenkov \\ maxim.a...@gmail.com
+44 7 486 486 505 \\ www.maxim.abalenkov.uk


0 mesaje noi