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

Perl on Bash on Ubuntu on Windows - installation issues

Thread Next
From:
Michiel Beijen
Date:
September 23, 2016 08:16
Subject:
Perl on Bash on Ubuntu on Windows - installation issues
Message ID:
CABD0r13dOUj-pnGC6vgH58Ta1ZDHM=UqethJDqR8ynzYtsxTOg@mail.gmail.com
Hi,

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
here:

https://msdn.microsoft.com/en-us/commandline/wsl/about

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
`/home/michiel/perl5/perlbrew/build/perl-5.24.0/ext/Pod-Functions'
"../../miniperl" "-I../../lib" "-I../../lib" Functions_pm.PL
../../pod/perlfunc.pod
Can't locate Pod/Simple/SimpleTree.pm in @INC (you may need to install
the Pod::Simple::SimpleTree module) (@INC contains:
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/AutoLoader/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/dist/Carp/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/dist/PathTools
/home/michiel/perl5/perlbrew/build/perl-5.24.0/dist/PathTools/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/ExtUtils-Install/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/ExtUtils-MakeMaker/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/ExtUtils-Manifest/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/File-Path/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/ext/re
/home/michiel/perl5/perlbrew/build/perl-5.24.0/dist/Term-ReadLine/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/dist/Exporter/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/ext/File-Find/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/Text-Tabs/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/dist/constant/lib
/home/michiel/perl5/perlbrew/build/perl-5.24.0/cpan/version/lib
/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
https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz
--2016-09-23 10:12:59--
https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz
Resolving cpan.metacpan.org (cpan.metacpan.org)... 151.101.36.129
Connecting to cpan.metacpan.org
(cpan.metacpan.org)|151.101.36.129|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7319 (7.1K) [application/x-gzip]
Saving to: ‘HTTP-Date-6.02.tar.gz’
100%[==============================================================================>]
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:
        lib/HTTP/Date.pm
        t/date.t
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/Date.pm in @INC (you may need to install
the HTTP::Date module) (@INC contains:
/home/michiel/HTTP-Date-6.02/blib/lib
/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
michiel@DESKTOP-SNC7OPQ:~/HTTP-Date-6.02$


Does anybody have advice?

--
Michiel

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About