1.curl -L https://cpanmin.us | perl - --sudo App::cpanminus
参考:https://metacpan.org/pod/App::cpanminus#INSTALL
root@debian:/home/test/**# curl -L https://cpanmin.us | perl - --sudo App::cpanminus % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 295k 100 295k 0 0 1969k 0 --:--:-- --:--:-- --:--:-- 1971k --> Working on App::cpanminus Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7044.tar.gz ... OK Configuring App-cpanminus-1.7044 ... OK Building and testing App-cpanminus-1.7044 ... OK Successfully installed App-cpanminus-1.7044 1 distribution installed
root@debian:/home/test/****# curl -L https://cpanmin.us | perl - App::cpanminus % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 295k 100 295k 0 0 9173k 0 --:--:-- --:--:-- --:--:-- 9240k App::cpanminus is up to date. (1.7044)
2.cpanm Plack
参考:https://plackperl.org/
root@debian:/usr/bin# cpanm Plack --> Working on Plack Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-1.0047.tar.gz ... OK ==> Found dependencies: File::ShareDir::Install --> Working on File::ShareDir::Install Fetching http://www.cpan.org/authors/id/E/ET/ETHER/File-ShareDir-Install-0.13.tar.gz ... OK Configuring File-ShareDir-Install-0.13 ... OK Building and testing File-ShareDir-Install-0.13 ... OK Successfully installed File-ShareDir-Install-0.13 Configuring Plack-1.0047 ... OK ==> Found dependencies: Cookie::Baker, WWW::Form::UrlEncoded, Try::Tiny, Test::Requires, Hash::MultiValue, Devel::StackTrace, Devel::StackTrace::AsHTML, HTTP::Headers::Fast, HTTP::Entity::Parser, Stream::Buffered, Filesys::Notify::Simple, File::ShareDir, Apache::LogFormat::Compiler, Test::TCP --> Working on Cookie::Baker Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/Cookie-Baker-0.09.tar.gz ... OK ==> Found dependencies: Module::Build::Tiny --> Working on Module::Build::Tiny Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz ... OK ==> Found dependencies: ExtUtils::InstallPaths, ExtUtils::Helpers, ExtUtils::Config --> Working on ExtUtils::InstallPaths Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz ... OK Configuring ExtUtils-InstallPaths-0.012 ... OK ==> Found dependencies: ExtUtils::Config --> Working on ExtUtils::Config Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Config-0.008.tar.gz ... OK Configuring ExtUtils-Config-0.008 ... OK Building and testing ExtUtils-Config-0.008 ... OK Successfully installed ExtUtils-Config-0.008 Building and testing ExtUtils-InstallPaths-0.012 ... OK Successfully installed ExtUtils-InstallPaths-0.012 --> Working on ExtUtils::Helpers Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz ... OK Configuring ExtUtils-Helpers-0.026 ... OK Building and testing ExtUtils-Helpers-0.026 ... OK Successfully installed ExtUtils-Helpers-0.026 Configuring Module-Build-Tiny-0.039 ... OK Building and testing Module-Build-Tiny-0.039 ... OK Successfully installed Module-Build-Tiny-0.039 Configuring Cookie-Baker-0.09 ... OK ==> Found dependencies: Test::Time --> Working on Test::Time Fetching http://www.cpan.org/authors/id/S/SA/SATOH/Test-Time-0.06.tar.gz ... OK Configuring Test-Time-0.06 ... OK Building and testing Test-Time-0.06 ... OK Successfully installed Test-Time-0.06 Building and testing Cookie-Baker-0.09 ... OK Successfully installed Cookie-Baker-0.09 --> Working on WWW::Form::UrlEncoded Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/WWW-Form-UrlEncoded-0.24.tar.gz ... OK Configuring WWW-Form-UrlEncoded-0.24 ... OK ==> Found dependencies: JSON --> Working on JSON Fetching http://www.cpan.org/authors/id/I/IS/ISHIGAKI/JSON-2.97001.tar.gz ... OK Configuring JSON-2.97001 ... OK Building and testing JSON-2.97001 ... OK Successfully installed JSON-2.97001 Building and testing WWW-Form-UrlEncoded-0.24 ... OK Successfully installed WWW-Form-UrlEncoded-0.24 --> Working on Try::Tiny Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Try-Tiny-0.30.tar.gz ... OK Configuring Try-Tiny-0.30 ... OK Building and testing Try-Tiny-0.30 ... OK Successfully installed Try-Tiny-0.30 --> Working on Test::Requires Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Test-Requires-0.10.tar.gz ... OK Configuring Test-Requires-0.10 ... OK Building and testing Test-Requires-0.10 ... OK Successfully installed Test-Requires-0.10 --> Working on Hash::MultiValue Fetching http://www.cpan.org/authors/id/A/AR/ARISTOTLE/Hash-MultiValue-0.16.tar.gz ... OK Configuring Hash-MultiValue-0.16 ... OK Building and testing Hash-MultiValue-0.16 ... OK Successfully installed Hash-MultiValue-0.16 --> Working on Devel::StackTrace Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Devel-StackTrace-2.03.tar.gz ... OK Configuring Devel-StackTrace-2.03 ... OK Building and testing Devel-StackTrace-2.03 ... OK Successfully installed Devel-StackTrace-2.03 --> Working on Devel::StackTrace::AsHTML Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Devel-StackTrace-AsHTML-0.15.tar.gz ... OK Configuring Devel-StackTrace-AsHTML-0.15 ... OK Building and testing Devel-StackTrace-AsHTML-0.15 ... OK Successfully installed Devel-StackTrace-AsHTML-0.15 --> Working on HTTP::Headers::Fast Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/HTTP-Headers-Fast-0.21.tar.gz ... OK Configuring HTTP-Headers-Fast-0.21 ... OK Building and testing HTTP-Headers-Fast-0.21 ... OK Successfully installed HTTP-Headers-Fast-0.21 --> Working on HTTP::Entity::Parser Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/HTTP-Entity-Parser-0.21.tar.gz ... OK Configuring HTTP-Entity-Parser-0.21 ... OK ==> Found dependencies: Stream::Buffered, JSON::MaybeXS, HTTP::MultiPartParser --> Working on Stream::Buffered Fetching http://www.cpan.org/authors/id/D/DO/DOY/Stream-Buffered-0.03.tar.gz ... OK Configuring Stream-Buffered-0.03 ... OK Building and testing Stream-Buffered-0.03 ... OK Successfully installed Stream-Buffered-0.03 --> Working on JSON::MaybeXS Fetching http://www.cpan.org/authors/id/H/HA/HAARG/JSON-MaybeXS-1.004000.tar.gz ... OK Configuring JSON-MaybeXS-1.004000 ... OK ==> Found dependencies: JSON::PP, Cpanel::JSON::XS --> Working on JSON::PP Fetching http://www.cpan.org/authors/id/I/IS/ISHIGAKI/JSON-PP-2.97001.tar.gz ... OK Configuring JSON-PP-2.97001 ... OK Building and testing JSON-PP-2.97001 ... OK Successfully installed JSON-PP-2.97001 (upgraded from 2.27203) --> Working on Cpanel::JSON::XS Fetching http://www.cpan.org/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-4.06.tar.gz ... OK Configuring Cpanel-JSON-XS-4.06 ... OK Building and testing Cpanel-JSON-XS-4.06 ... OK Successfully installed Cpanel-JSON-XS-4.06 Building and testing JSON-MaybeXS-1.004000 ... OK Successfully installed JSON-MaybeXS-1.004000 --> Working on HTTP::MultiPartParser Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/HTTP-MultiPartParser-0.02.tar.gz ... OK Configuring HTTP-MultiPartParser-0.02 ... OK ==> Found dependencies: Test::Deep --> Working on Test::Deep Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-1.128.tar.gz ... OK Configuring Test-Deep-1.128 ... OK ==> Found dependencies: Test::Tester --> Working on Test::Tester Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.302140.tar.gz ... OK Configuring Test-Simple-1.302140 ... OK Building and testing Test-Simple-1.302140 ... OK Successfully installed Test-Simple-1.302140 Building and testing Test-Deep-1.128 ... OK Successfully installed Test-Deep-1.128 Building and testing HTTP-MultiPartParser-0.02 ... OK Successfully installed HTTP-MultiPartParser-0.02 Building and testing HTTP-Entity-Parser-0.21 ... OK Successfully installed HTTP-Entity-Parser-0.21 --> Working on Filesys::Notify::Simple Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Filesys-Notify-Simple-0.13.tar.gz ... OK Configuring Filesys-Notify-Simple-0.13 ... OK ==> Found dependencies: Test::SharedFork --> Working on Test::SharedFork Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-SharedFork-0.35.tar.gz ... OK Configuring Test-SharedFork-0.35 ... OK Building and testing Test-SharedFork-0.35 ... OK Successfully installed Test-SharedFork-0.35 Building and testing Filesys-Notify-Simple-0.13 ... OK Successfully installed Filesys-Notify-Simple-0.13 --> Working on File::ShareDir Fetching http://www.cpan.org/authors/id/R/RE/REHSACK/File-ShareDir-1.116.tar.gz ... OK Configuring File-ShareDir-1.116 ... OK ==> Found dependencies: Class::Inspector --> Working on Class::Inspector Fetching http://www.cpan.org/authors/id/P/PL/PLICEASE/Class-Inspector-1.32.tar.gz ... OK Configuring Class-Inspector-1.32 ... OK Building and testing Class-Inspector-1.32 ... OK Successfully installed Class-Inspector-1.32 Building and testing File-ShareDir-1.116 ... OK Successfully installed File-ShareDir-1.116 --> Working on Apache::LogFormat::Compiler Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/Apache-LogFormat-Compiler-0.35.tar.gz ... OK Configuring Apache-LogFormat-Compiler-0.35 ... OK ==> Found dependencies: Test::MockTime, POSIX::strftime::Compiler --> Working on Test::MockTime Fetching http://www.cpan.org/authors/id/D/DD/DDICK/Test-MockTime-0.17.tar.gz ... OK Configuring Test-MockTime-0.17 ... OK Building and testing Test-MockTime-0.17 ... OK Successfully installed Test-MockTime-0.17 --> Working on POSIX::strftime::Compiler Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/POSIX-strftime-Compiler-0.42.tar.gz ... OK Configuring POSIX-strftime-Compiler-0.42 ... OK Building and testing POSIX-strftime-Compiler-0.42 ... OK Successfully installed POSIX-strftime-Compiler-0.42 Building and testing Apache-LogFormat-Compiler-0.35 ... OK Successfully installed Apache-LogFormat-Compiler-0.35 --> Working on Test::TCP Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Test-TCP-2.19.tar.gz ... OK Configuring Test-TCP-2.19 ... OK Building and testing Test-TCP-2.19 ... OK Successfully installed Test-TCP-2.19 Building and testing Plack-1.0047 ... OK Successfully installed Plack-1.0047
3.
https://metacpan.org/pod/plackup
https://en.wikipedia.org/wiki/Plack_(software)
https://metacpan.org/pod/plackup
4.模块安装:
curl -L https://cpanmin.us | perl - CGI::Application
curl -L https://cpanmin.us | perl - CGI::PSGI
curl -L https://cpanmin.us | perl - Mojo::DOM