develooper Front page | perl.perl5.porters | Postings from September 2016

Perl on Bash on Ubuntu on Windows - installation issues

Thread Next
Michiel Beijen
September 23, 2016 08:16
Perl on Bash on Ubuntu on Windows - installation issues
Message ID:

I have a set up which might be not so standard but on the other hand I
think it will become more common: I run Ubuntu on Windows, not via
virtualization but using the Linux subsystem for windows, as described

This comes with Ubuntu 14.04 and you can simply apt-get packages from
the same repos as the 'real' ubuntu.

However I can't seem to install a new perl using either plenv or
perlbrew, and I can also not install modules using system CPAN, and
the issues seem to have to do with the current directory not being in
@INC. Below is output of the build log from perlbrew:

Writing Makefile for Pod::Functions
make[1]: Entering directory
"../../miniperl" "-I../../lib" "-I../../lib" Functions_pm.PL
Can't locate Pod/Simple/ in @INC (you may need to install
the Pod::Simple::SimpleTree module) (@INC contains:
/home/michiel/perl5/perlbrew/build/perl-5.24.0/lib ../../lib .) at
Functions_pm.PL line 3.

And this is manually installing a trivial CPAN module on the system
perl (ofc using cpan or cpanm gives similar results):

michiel@DESKTOP-SNC7OPQ:~$ wget
--2016-09-23 10:12:59--
Resolving (
Connecting to
(||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7319 (7.1K) [application/x-gzip]
Saving to: ‘HTTP-Date-6.02.tar.gz’
7,319       --.-K/s   in 0.001s
2016-09-23 10:12:59 (12.7 MB/s) - ‘HTTP-Date-6.02.tar.gz’ saved [7319/7319]
michiel@DESKTOP-SNC7OPQ:~$ tar xf HTTP-Date-6.02.tar.gz
michiel@DESKTOP-SNC7OPQ:~$ cd HTTP-Date-6.02/
michiel@DESKTOP-SNC7OPQ:~/HTTP-Date-6.02$ perl Makefile.PL
Checking if your kit is complete...
Warning: the following files are missing in your kit:
Please inform the author.
Writing Makefile for HTTP::Date
Writing MYMETA.yml and MYMETA.json
michiel@DESKTOP-SNC7OPQ:~/HTTP-Date-6.02$ make && make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/date.t .. Can't locate HTTP/ in @INC (you may need to install
the HTTP::Date module) (@INC contains:
/home/michiel/HTTP-Date-6.02/blib/arch /etc/perl
/usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18
/usr/local/lib/site_perl .) at t/date.t line 8.
BEGIN failed--compilation aborted at t/date.t line 8.
t/date.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
t/date.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=1, Tests=0,  0 wallclock secs ( 0.00 usr  0.07 sys +  0.04 cusr
0.03 csys =  0.14 CPU)
Result: FAIL
Failed 1/1 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2

Does anybody have advice?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About