Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Compiling Perl using Win10 Subsystem for Linux (WSL)

by holli (Monsignor)
on Dec 06, 2017 at 09:39 UTC ( #1205007=perlquestion: print w/replies, xml ) Need Help??
holli has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to compile Perl using the new Linux on Windows 10 feature in the new shiny bash. So I installed perlbrew and gave it a go. Here is the output of the build process which failed in the test phase. (I removed lines with passing tests) Looks like there is a problem with io sockets. How do I fix that?
  • Comment on Compiling Perl using Win10 Subsystem for Linux (WSL)

Replies are listed 'Best First'.
Re: Compiling Perl using Win10 Subsystem for Linux (WSL)
by Corion (Pope) on Dec 06, 2017 at 10:11 UTC

    Can you show us the output of perlbug or perl -V? It includes all information that's needed on how you compiled Perl.

    I'm not surprised that ../cpan/IPC-SysV/ tests fail, as most likely the Unix subsystem doesn't really have SysV IPC and maybe needs some better skipping logic in its tests.

    Net::Ping failing is a tiny bit surprising, but maybe it needs root permissions in the WSL system and its detection goes wrong on whether it is root or not.

    Can you also show the detailed output of a failing (socket) test? Run it maybe as

    /path/to/hollis/fresh/bin/perl t/socket.t
      Here`s the output of -V Here's one of the tests: So, yes. Apparently the linux subsystem is lacking SystemV support. Is there maybe a linux package I am missing? The WSL subsystem is just a barebone linux, for instance i had to install a stackexec package in order to get rakudo to compile.


      holli

      You can lead your users to water, but alas, you cannot drown them.
Re: Compiling Perl using Win10 Subsystem for Linux (WSL)
by marto (Archbishop) on Dec 06, 2017 at 11:32 UTC

    Have you tried running your session as an 'Administrator' user? So launch cmd/powershell as an Administrator then run bash...

      It's the Windows Subsystem for Linux marto, not just Windows. So there is no Administrator, just root. And everything is happening in my home directory, so no, it`s not a rights issue.


      holli

      You can lead your users to water, but alas, you cannot drown them.
Re: Compiling Perl using Win10 Subsystem for Linux (WSL)
by swl (Friar) on Dec 06, 2017 at 20:55 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1205007]
Approved by marto
Front-paged by haukex
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2018-06-20 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?