3.3.2. Configuring local-lib module#
To configure local-lib:
Open the $HOME/.bashrc
file in a text editor.
Add the following text at the end of the file:
# Configuration for Perl local-lib module
eval "$(perl -Mlocal::lib)"
Save the file.
Here is a sample .bashrc
, for reference
(Fig. 57).

Fig. 57 local-lib configuration in .bashrc#
Open a new terminal window.
You will notice the following message displayed (Fig. 58):

Fig. 58 Attempting to create directory /home/user/perl5#
Configuration is now complete.
You can now start installing modules from CPAN and other sources.