in reply to Re: Exporting perl5lib to local directory and using local::lib module to access it.
in thread Exporting perl5lib to local directory and using local::lib module to access it.

Okay, if I am using local::lib, then should the module files downloaded from cpan be present in that dir? and what if the module like Bio::Phylo with multiple submodules is needed?
  • Comment on Re^2: Exporting perl5lib to local directory and using local::lib module to access it.

Replies are listed 'Best First'.
Re^3: Exporting perl5lib to local directory and using local::lib module to access it.
by Corion (Patriarch) on Sep 11, 2015 at 06:22 UTC

    I'm unclear on what you mean by "downloaded from CPAN". The setup of local::lib is documented with examples in local::lib. If you follow that setup, you should be able to install all modules using the cpan tool (or cpanm).

    Note that the documented setup in local::lib differs from what you have told us so far. Your setup claims /home/my_code_folder but local::lib documents /home/username/perl5/lib/perl5. You might want to reread the documentation in local::lib and compare that to your current setup.

      Thanks   perl -Mlocal::lib This listed all required commands . I chose the export PERL5LIB=''