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.abalen...@gmail.com
+44 7 486 486 505 \\ www.maxim.abalenkov.uk


Reply via email to