无法在 Windows 10 pro 上的 Ubuntu 子系统中安装 Perl 模块

无法在 Windows 10 pro 上的 Ubuntu 子系统中安装 Perl 模块

不确定我是否遇到了 Windows Ubuntu 子系统的限制或其他问题,我尝试安装sudo cpan install HTTP::Server::Simple::CGI但出现错误。

在我的本机 Ubuntu 机器上运行相同的命令,没有出现任何错误,它只是安装。

$ sudo cpan install HTTP::Server::Simple::CGI

Reading '/home/joseph/.cpan/Metadata'
  Database was generated on Fri, 30 Dec 2016 04:53:30 GMT
Running install for module 'HTTP::Server::Simple::CGI'
Running make for B/BP/BPS/HTTP-Server-Simple-0.51.tar.gz
Checksum for /home/joseph/.cpan/sources/authors/id/B/BP/BPS/HTTP-Server-Simple-0.51.tar.gz ok

  CPAN.pm: Building B/BP/BPS/HTTP-Server-Simple-0.51.tar.gz

Cannot determine perl version info from lib/HTTP/Server/Simple.pm
Checking if your kit is complete...
Warning: the following files are missing in your kit:
        ex/sample_server
        inc/Module/Install.pm
        inc/Module/Install/Base.pm
        inc/Module/Install/Can.pm
        inc/Module/Install/Fetch.pm
        inc/Module/Install/Makefile.pm
        inc/Module/Install/Metadata.pm
        inc/Module/Install/Win32.pm
        inc/Module/Install/WriteAll.pm
        lib/HTTP/Server/Simple.pm
        lib/HTTP/Server/Simple/CGI.pm
        lib/HTTP/Server/Simple/CGI/Environment.pm
        t/00smoke.t
        t/01live.t
        t/02pod.t
        t/03podcoverage.t
        t/04cgi.t
Please inform the author.
Writing Makefile for HTTP::Server::Simple
Writing MYMETA.yml and MYMETA.json
  BPS/HTTP-Server-Simple-0.51.tar.gz
  make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

相关内容