Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2798

WSL Ubuntu why does cpanm install Perl5 modules in the wrong spot?

$
0
0

I have Ubuntu installed under Windows Subsystem for Linux 2 (WSL2). There are Perl5 modules installed under /usr/share/perl/5.30.0 and I can access these with a plain use statement. But when I install new modules with cpanminus, it puts them in /home/*****/perl5/lib/perl5/, where the interpreter can't find them unless I have a use lib declaration at the top. Is there some way to get cpanm to install them in the right spot?

Here is the relevant output of perl -V. IDK if the entries in %ENV were there before I used cpanm. Otherwise the installation is what came with the distro.

%ENV:                                                                                                                                 PERL5LIB="/home/*****/perl5/lib/perl5"                                                                                  PERL_LOCAL_LIB_ROOT="/home/*****/perl5"                                                                             PERL_MB_OPT="--install_base "/home/*****/perl5""                                                                    PERL_MM_OPT="INSTALL_BASE=/home/*****/perl5"                                                                      @INC:                                                                                                                 /home/*****/perl5/lib/perl5/5.30.0/x86_64-linux-gnu-thread-multi                                                    /home/*****/perl5/lib/perl5/5.30.0                                                                                  /home/*****/perl5/lib/perl5/x86_64-linux-gnu-thread-multi                                                           /home/*****/perl5/lib/perl5                                                                                         /etc/perl                                                                                                           /usr/local/lib/x86_64-linux-gnu/perl/5.30.0                                                                         /usr/local/share/perl/5.30.0                                                                                        /usr/lib/x86_64-linux-gnu/perl5/5.30                                                                                /usr/share/perl5                                                                                                    /usr/lib/x86_64-linux-gnu/perl/5.30                                                                                 /usr/share/perl/5.30                                                                                                /usr/local/lib/site_perl                                                                                            /usr/lib/x86_64-linux-gnu/perl-base     

Viewing all articles
Browse latest Browse all 2798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>