前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >perl dancer 基础

perl dancer 基础

作者头像
franket
发布2022-03-25 14:24:37
2.3K0
发布2022-03-25 14:24:37
举报
文章被收录于专栏:技术杂记

前言

Dancer 是一个perl的web框架,可以快速生成web server.

Dancer is a simple but powerful web application framework for Perl.

下面对 Dancer 的基础操作进行一下分享

Tip: 当前的版本为 Dancer2-0.163 ,下载地址: Dancer2-0.163000 , CPAN: Dancer2_CPAN , git: Dancer2_git


概要


安装

使用 curl -L http://cpanmin.us | perl - --sudo Dancer2 进行安装

代码语言:javascript
复制
[root@dancer-test ~]# curl -L http://cpanmin.us | perl - --sudo Dancer2 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  296k  100  296k    0     0   208k      0  0:00:01  0:00:01 --:--:--  208k
--> Working on Dancer2
Fetching http://www.cpan.org/authors/id/X/XS/XSAWYERX/Dancer2-0.163000.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker, File::ShareDir::Install
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.10.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.10 ... OK
Building ExtUtils-MakeMaker-7.10 ... OK
Successfully installed ExtUtils-MakeMaker-7.10 (upgraded from 6.55_02)
--> Working on File::ShareDir::Install
Fetching http://www.cpan.org/authors/id/G/GW/GWYN/File-ShareDir-Install-0.10.tar.gz ... OK
Configuring File-ShareDir-Install-0.10 ... OK
Building File-ShareDir-Install-0.10 ... OK
Successfully installed File-ShareDir-Install-0.10
Configuring Dancer2-0.163000 ... OK
==> Found dependencies: HTTP::Headers::Fast, Capture::Tiny, YAML, Template::Tiny, App::Cmd::Setup, HTTP::Tiny, Return::MultiLevel, Config::Any, Plack::Middleware::RemoveRedundantBody, HTTP::Body, Plack::Middleware::FixMissingBodyInRedirect, Import::Into, Hash::Merge::Simple, MooX::Types::MooseLike, Role::Tiny, Test::Fatal, Moo::Role, Safe::Isa, Plack, Moo, Class::Load, Template, MIME::Base64, JSON
--> Working on HTTP::Headers::Fast
Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/HTTP-Headers-Fast-0.20.tar.gz ... OK
==> Found dependencies: Module::Build
--> Working on Module::Build
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4214.tar.gz ... OK
==> Found dependencies: Module::Metadata, version, CPAN::Meta, Perl::OSType
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000027.tar.gz ... OK
Configuring Module-Metadata-1.000027 ... OK
==> Found dependencies: version
--> Working on version
Fetching http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9912.tar.gz ... OK
Configuring version-0.9912 ... OK
Building version-0.9912 ... OK
Successfully installed version-0.9912 (upgraded from 0.77)
Building Module-Metadata-1.000027 ... OK
Successfully installed Module-Metadata-1.000027
--> Working on CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.150005.tar.gz ... OK
Configuring CPAN-Meta-2.150005 ... OK
==> Found dependencies: Parse::CPAN::Meta
--> Working on Parse::CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-1.4417.tar.gz ... OK
Configuring Parse-CPAN-Meta-1.4417 ... OK
==> Found dependencies: CPAN::Meta::YAML
--> Working on CPAN::Meta::YAML
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-0.016.tar.gz ... OK
Configuring CPAN-Meta-YAML-0.016 ... OK
Building CPAN-Meta-YAML-0.016 ... OK
Successfully installed CPAN-Meta-YAML-0.016 (upgraded from 0.008)
Building Parse-CPAN-Meta-1.4417 ... OK
Successfully installed Parse-CPAN-Meta-1.4417 (upgraded from 1.4405)
Building CPAN-Meta-2.150005 ... OK
Successfully installed CPAN-Meta-2.150005 (upgraded from 2.120351)
--> Working on Perl::OSType
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Perl-OSType-1.009.tar.gz ... OK
Configuring Perl-OSType-1.009 ... OK
Building Perl-OSType-1.009 ... OK
Successfully installed Perl-OSType-1.009
Configuring Module-Build-0.4214 ... OK
Building Module-Build-0.4214 ... OK
Successfully installed Module-Build-0.4214 (upgraded from 0.35)
Configuring HTTP-Headers-Fast-0.20 ... OK
==> Found dependencies: Test::More, Test::Requires
--> Working on Test::More
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.001014.tar.gz ... OK
Configuring Test-Simple-1.001014 ... OK
Building and testing Test-Simple-1.001014 ... OK
Successfully installed Test-Simple-1.001014 (upgraded from 0.92)
--> 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
Building and testing HTTP-Headers-Fast-0.20 ... OK
Successfully installed HTTP-Headers-Fast-0.20
--> Working on Capture::Tiny
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.30.tar.gz ... OK
Configuring Capture-Tiny-0.30 ... OK
Building and testing Capture-Tiny-0.30 ... OK
Successfully installed Capture-Tiny-0.30
--> Working on YAML
Fetching http://www.cpan.org/authors/id/I/IN/INGY/YAML-1.15.tar.gz ... OK
Configuring YAML-1.15 ... OK
==> Found dependencies: Test::YAML
--> Working on Test::YAML
Fetching http://www.cpan.org/authors/id/I/IN/INGY/Test-YAML-1.06.tar.gz ... OK
Configuring Test-YAML-1.06 ... OK
==> Found dependencies: Test::Base
--> Working on Test::Base
Fetching http://www.cpan.org/authors/id/I/IN/INGY/Test-Base-0.88.tar.gz ... OK
Configuring Test-Base-0.88 ... OK
==> Found dependencies: Text::Diff, Spiffy, Algorithm::Diff
--> Working on Text::Diff
Fetching http://www.cpan.org/authors/id/N/NE/NEILB/Text-Diff-1.43.tar.gz ... OK
Configuring Text-Diff-1.43 ... OK
==> Found dependencies: Algorithm::Diff
--> Working on Algorithm::Diff
Fetching http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-1.1903.tar.gz ... OK
Configuring Algorithm-Diff-1.1903 ... OK
Building and testing Algorithm-Diff-1.1903 ... OK
Successfully installed Algorithm-Diff-1.1903
Building and testing Text-Diff-1.43 ... OK
Successfully installed Text-Diff-1.43
--> Working on Spiffy
Fetching http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-0.46.tar.gz ... OK
Configuring Spiffy-0.46 ... OK
Building and testing Spiffy-0.46 ... OK
Successfully installed Spiffy-0.46
Building and testing Test-Base-0.88 ... OK
Successfully installed Test-Base-0.88
Building and testing Test-YAML-1.06 ... OK
Successfully installed Test-YAML-1.06
Building and testing YAML-1.15 ... OK
Successfully installed YAML-1.15
--> Working on Template::Tiny
Fetching http://www.cpan.org/authors/id/A/AD/ADAMK/Template-Tiny-1.12.tar.gz ... OK
Configuring Template-Tiny-1.12 ... OK
Building and testing Template-Tiny-1.12 ... OK
Successfully installed Template-Tiny-1.12
--> Working on App::Cmd::Setup
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/App-Cmd-0.330.tar.gz ... OK
Configuring App-Cmd-0.330 ... OK
==> Found dependencies: Pod::Usage, Test::Fatal, IO::TieCombine, String::RewritePrefix, Sub::Exporter, Getopt::Long::Descriptive, Getopt::Long, Class::Load, Data::OptList, Sub::Exporter::Util, Sub::Install
--> Working on Pod::Usage
Fetching http://www.cpan.org/authors/id/M/MA/MAREKR/Pod-Usage-1.67.tar.gz ... OK
Configuring Pod-Usage-1.67 ... OK
==> Found dependencies: Pod::Text
--> Working on Pod::Text
Fetching http://www.cpan.org/authors/id/R/RR/RRA/podlators-2.5.3.tar.gz ... OK
Configuring podlators-v2.5.3 ... OK
Building and testing podlators-v2.5.3 ... OK
Successfully installed podlators-v2.5.3 (upgraded from 3.13)
Building and testing Pod-Usage-1.67 ... OK
Successfully installed Pod-Usage-1.67 (upgraded from 1.36)
--> Working on Test::Fatal
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Fatal-0.014.tar.gz ... OK
Configuring Test-Fatal-0.014 ... OK
==> Found dependencies: Try::Tiny
--> Working on Try::Tiny
Fetching http://www.cpan.org/authors/id/D/DO/DOY/Try-Tiny-0.22.tar.gz ... OK
Configuring Try-Tiny-0.22 ... OK
Building and testing Try-Tiny-0.22 ... OK
Successfully installed Try-Tiny-0.22
Building and testing Test-Fatal-0.014 ... OK
Successfully installed Test-Fatal-0.014
--> Working on IO::TieCombine
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/IO-TieCombine-1.005.tar.gz ... OK
Configuring IO-TieCombine-1.005 ... OK
Building and testing IO-TieCombine-1.005 ... OK
Successfully installed IO-TieCombine-1.005
--> Working on String::RewritePrefix
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/String-RewritePrefix-0.007.tar.gz ... OK
Configuring String-RewritePrefix-0.007 ... OK
==> Found dependencies: Sub::Exporter
--> Working on Sub::Exporter
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-0.987.tar.gz ... OK
Configuring Sub-Exporter-0.987 ... OK
==> Found dependencies: Data::OptList, Params::Util, Sub::Install
--> Working on Data::OptList
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Data-OptList-0.109.tar.gz ... OK
Configuring Data-OptList-0.109 ... OK
==> Found dependencies: Params::Util, Sub::Install
--> Working on Params::Util
Fetching http://www.cpan.org/authors/id/A/AD/ADAMK/Params-Util-1.07.tar.gz ... OK
Configuring Params-Util-1.07 ... OK
Building and testing Params-Util-1.07 ... OK
Successfully installed Params-Util-1.07
--> Working on Sub::Install
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-0.928.tar.gz ... OK
Configuring Sub-Install-0.928 ... OK
Building and testing Sub-Install-0.928 ... OK
Successfully installed Sub-Install-0.928
Building and testing Data-OptList-0.109 ... OK
Successfully installed Data-OptList-0.109
Building and testing Sub-Exporter-0.987 ... OK
Successfully installed Sub-Exporter-0.987
Building and testing String-RewritePrefix-0.007 ... OK
Successfully installed String-RewritePrefix-0.007
--> Working on Getopt::Long::Descriptive
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Getopt-Long-Descriptive-0.099.tar.gz ... OK
Configuring Getopt-Long-Descriptive-0.099 ... OK
==> Found dependencies: Test::Warnings, Params::Validate
--> Working on Test::Warnings
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Test-Warnings-0.021.tar.gz ... OK
Configuring Test-Warnings-0.021 ... OK
==> Found dependencies: CPAN::Meta::Check
--> Working on CPAN::Meta::Check
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-0.012.tar.gz ... OK
Configuring CPAN-Meta-Check-0.012 ... OK
==> Found dependencies: Test::Deep
--> Working on Test::Deep
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-0.119.tar.gz ... OK
Configuring Test-Deep-0.119 ... OK
Building and testing Test-Deep-0.119 ... OK
Successfully installed Test-Deep-0.119
Building and testing CPAN-Meta-Check-0.012 ... OK
Successfully installed CPAN-Meta-Check-0.012
Building and testing Test-Warnings-0.021 ... OK
Successfully installed Test-Warnings-0.021
--> Working on Params::Validate
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-1.21.tar.gz ... OK
Configuring Params-Validate-1.21 ... OK
==> Found dependencies: Module::Implementation
--> Working on Module::Implementation
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Module-Implementation-0.09.tar.gz ... OK
Configuring Module-Implementation-0.09 ... OK
==> Found dependencies: Module::Runtime
--> Working on Module::Runtime
Fetching http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Module-Runtime-0.014.tar.gz ... OK
Configuring Module-Runtime-0.014 ... OK
Building and testing Module-Runtime-0.014 ... OK
Successfully installed Module-Runtime-0.014
Building and testing Module-Implementation-0.09 ... OK
Successfully installed Module-Implementation-0.09
Building and testing Params-Validate-1.21 ... OK
Successfully installed Params-Validate-1.21
Building and testing Getopt-Long-Descriptive-0.099 ... OK
Successfully installed Getopt-Long-Descriptive-0.099
--> Working on Getopt::Long
Fetching http://www.cpan.org/authors/id/J/JV/JV/Getopt-Long-2.48.tar.gz ... OK
Configuring Getopt-Long-2.48 ... OK
Building and testing Getopt-Long-2.48 ... OK
Successfully installed Getopt-Long-2.48 (upgraded from 2.38)
--> Working on Class::Load
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Class-Load-0.23.tar.gz ... OK
Configuring Class-Load-0.23 ... OK
==> Found dependencies: Package::Stash
--> Working on Package::Stash
Fetching http://www.cpan.org/authors/id/D/DO/DOY/Package-Stash-0.37.tar.gz ... OK
==> Found dependencies: Dist::CheckConflicts
--> Working on Dist::CheckConflicts
Fetching http://www.cpan.org/authors/id/D/DO/DOY/Dist-CheckConflicts-0.11.tar.gz ... OK
Configuring Dist-CheckConflicts-0.11 ... OK
Building Dist-CheckConflicts-0.11 ... OK
Successfully installed Dist-CheckConflicts-0.11
Configuring Package-Stash-0.37 ... OK
==> Found dependencies: Package::Stash::XS
--> Working on Package::Stash::XS
Fetching http://www.cpan.org/authors/id/D/DO/DOY/Package-Stash-XS-0.28.tar.gz ... OK
Configuring Package-Stash-XS-0.28 ... OK
Building and testing Package-Stash-XS-0.28 ... OK
Successfully installed Package-Stash-XS-0.28
Building and testing Package-Stash-0.37 ... OK
Successfully installed Package-Stash-0.37
Building and testing Class-Load-0.23 ... OK
Successfully installed Class-Load-0.23
Building and testing App-Cmd-0.330 ... OK
Successfully installed App-Cmd-0.330
--> Working on HTTP::Tiny
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-0.056.tar.gz ... OK
Configuring HTTP-Tiny-0.056 ... OK
Building and testing HTTP-Tiny-0.056 ... OK
Successfully installed HTTP-Tiny-0.056
--> Working on Return::MultiLevel
Fetching http://www.cpan.org/authors/id/M/MA/MAUKE/Return-MultiLevel-0.04.tar.gz ... OK
Configuring Return-MultiLevel-0.04 ... OK
==> Found dependencies: Data::Munge
--> Working on Data::Munge
Fetching http://www.cpan.org/authors/id/M/MA/MAUKE/Data-Munge-0.095.tar.gz ... OK
Configuring Data-Munge-0.095 ... OK
Building and testing Data-Munge-0.095 ... OK
Successfully installed Data-Munge-0.095
Building and testing Return-MultiLevel-0.04 ... OK
Successfully installed Return-MultiLevel-0.04
--> Working on Config::Any
Fetching http://www.cpan.org/authors/id/B/BR/BRICAS/Config-Any-0.26.tar.gz ... OK
Configuring Config-Any-0.26 ... OK
Building and testing Config-Any-0.26 ... OK
Successfully installed Config-Any-0.26
--> Working on Plack::Middleware::RemoveRedundantBody
Fetching http://www.cpan.org/authors/id/S/SW/SWEETKID/Plack-Middleware-RemoveRedundantBody-0.05.tar.gz ... OK
Configuring Plack-Middleware-RemoveRedundantBody-0.05 ... OK
==> Found dependencies: Plack::Middleware, Plack::Util, Plack::Test, Plack::Builder
--> Working on Plack::Middleware
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-1.0038.tar.gz ... OK
Configuring Plack-1.0038 ... OK
==> Found dependencies: Stream::Buffered, Test::TCP, File::ShareDir, Cookie::Baker, Hash::MultiValue, URI, Devel::StackTrace, Apache::LogFormat::Compiler, HTTP::Body, Filesys::Notify::Simple, Devel::StackTrace::AsHTML
--> 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 Test::TCP
Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Test-TCP-2.14.tar.gz ... OK
Configuring Test-TCP-2.14 ... OK
==> Found dependencies: IO::Socket::IP, Test::SharedFork
--> Working on IO::Socket::IP
Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-0.37.tar.gz ... OK
Configuring IO-Socket-IP-0.37 ... OK
==> Found dependencies: Socket
--> Working on Socket
Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/Socket-2.021.tar.gz ... OK
==> Found dependencies: ExtUtils::Constant
--> Working on ExtUtils::Constant
Fetching http://www.cpan.org/authors/id/N/NW/NWCLARK/ExtUtils-Constant-0.23.tar.gz ... OK
Configuring ExtUtils-Constant-0.16 ... OK
Building ExtUtils-Constant-0.23 ... OK
Successfully installed ExtUtils-Constant-0.23 (upgraded from 0.22)
Configuring Socket-2.021 ... OK
Building and testing Socket-2.021 ... OK
Successfully installed Socket-2.021 (upgraded from 1.82)
Building and testing IO-Socket-IP-0.37 ... FAIL
! Installing IO::Socket::IP failed. See /root/.cpanm/work/1448594784.19306/build.log for details. Retry with --force to force install it.
--> Working on Test::SharedFork
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-SharedFork-0.34.tar.gz ... OK
Configuring Test-SharedFork-0.34 ... OK
Building and testing Test-SharedFork-0.34 ... OK
Successfully installed Test-SharedFork-0.34
! Installing the dependencies failed: Module 'IO::Socket::IP' is not installed
! Bailing out the installation for Test-TCP-2.14.
--> Working on File::ShareDir
Fetching http://www.cpan.org/authors/id/R/RE/REHSACK/File-ShareDir-1.102.tar.gz ... OK
Configuring File-ShareDir-1.102 ... OK
==> Found dependencies: Class::Inspector
--> Working on Class::Inspector
Fetching http://www.cpan.org/authors/id/A/AD/ADAMK/Class-Inspector-1.28.tar.gz ... OK
Configuring Class-Inspector-1.28 ... OK
Building and testing Class-Inspector-1.28 ... OK
Successfully installed Class-Inspector-1.28
Building and testing File-ShareDir-1.102 ... OK
Successfully installed File-ShareDir-1.102
--> Working on Cookie::Baker
Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/Cookie-Baker-0.06.tar.gz ... OK
Configuring Cookie-Baker-0.06 ... OK
==> Found dependencies: Test::Time
--> Working on Test::Time
Fetching http://www.cpan.org/authors/id/S/SA/SATOH/Test-Time-0.04.tar.gz ... OK
Configuring Test-Time-0.04 ... OK
==> Found dependencies: Test::Name::FromLine
--> Working on Test::Name::FromLine
Fetching http://www.cpan.org/authors/id/S/SA/SATOH/Test-Name-FromLine-0.13.tar.gz ... OK
Configuring Test-Name-FromLine-0.13 ... OK
==> Found dependencies: Test::Differences, File::Slurp
--> Working on Test::Differences
Fetching http://www.cpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-0.64.tar.gz ... OK
Configuring Test-Differences-0.64 ... OK
==> Found dependencies: Data::Dumper
--> Working on Data::Dumper
Fetching http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz ... OK
Configuring Data-Dumper-2.154 ... OK
Building and testing Data-Dumper-2.154 ... OK
Successfully installed Data-Dumper-2.154 (upgraded from 2.124)
Building and testing Test-Differences-0.64 ... OK
Successfully installed Test-Differences-0.64
--> Working on File::Slurp
Fetching http://www.cpan.org/authors/id/U/UR/URI/File-Slurp-9999.19.tar.gz ... OK
Configuring File-Slurp-9999.19 ... OK
Building and testing File-Slurp-9999.19 ... OK
Successfully installed File-Slurp-9999.19
Building and testing Test-Name-FromLine-0.13 ... OK
Successfully installed Test-Name-FromLine-0.13
Building and testing Test-Time-0.04 ... OK
Successfully installed Test-Time-0.04
Building and testing Cookie-Baker-0.06 ... OK
Successfully installed Cookie-Baker-0.06
--> 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 URI
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/URI-1.69.tar.gz ... OK
Configuring URI-1.69 ... OK
Building and testing URI-1.69 ... OK
Successfully installed URI-1.69 (upgraded from 1.40)
--> Working on Devel::StackTrace
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Devel-StackTrace-2.00.tar.gz ... OK
Configuring Devel-StackTrace-2.00 ... OK
Building and testing Devel-StackTrace-2.00 ... OK
Successfully installed Devel-StackTrace-2.00
--> Working on Apache::LogFormat::Compiler
Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/Apache-LogFormat-Compiler-0.32.tar.gz ... OK
Configuring Apache-LogFormat-Compiler-0.32 ... 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.15.tar.gz ... OK
Configuring Test-MockTime-0.15 ... OK
Building and testing Test-MockTime-0.15 ... OK
Successfully installed Test-MockTime-0.15
--> Working on POSIX::strftime::Compiler
Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/POSIX-strftime-Compiler-0.41.tar.gz ... OK
Configuring POSIX-strftime-Compiler-0.41 ... OK
Building and testing POSIX-strftime-Compiler-0.41 ... OK
Successfully installed POSIX-strftime-Compiler-0.41
Building and testing Apache-LogFormat-Compiler-0.32 ... OK
Successfully installed Apache-LogFormat-Compiler-0.32
--> Working on HTTP::Body
Fetching http://www.cpan.org/authors/id/G/GE/GETTY/HTTP-Body-1.22.tar.gz ... OK
Configuring HTTP-Body-1.22 ... OK
Building and testing HTTP-Body-1.22 ... OK
Successfully installed HTTP-Body-1.22
--> Working on Filesys::Notify::Simple
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Filesys-Notify-Simple-0.12.tar.gz ... OK
Configuring Filesys-Notify-Simple-0.12 ... OK
Building and testing Filesys-Notify-Simple-0.12 ... OK
Successfully installed Filesys-Notify-Simple-0.12
--> Working on Devel::StackTrace::AsHTML
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Devel-StackTrace-AsHTML-0.14.tar.gz ... OK
Configuring Devel-StackTrace-AsHTML-0.14 ... OK
Building and testing Devel-StackTrace-AsHTML-0.14 ... OK
Successfully installed Devel-StackTrace-AsHTML-0.14
! Installing the dependencies failed: Module 'Test::TCP' is not installed
! Bailing out the installation for Plack-1.0038.
! Installing the dependencies failed: Module 'Plack::Middleware' is not installed, Module 'Plack::Util' is not installed, Module 'Plack::Test' is not installed, Module 'Plack::Builder' is not installed
! Bailing out the installation for Plack-Middleware-RemoveRedundantBody-0.05.
--> Working on Plack::Middleware::FixMissingBodyInRedirect
Fetching http://www.cpan.org/authors/id/S/SW/SWEETKID/Plack-Middleware-FixMissingBodyInRedirect-0.12.tar.gz ... OK
Configuring Plack-Middleware-FixMissingBodyInRedirect-0.12 ... OK
==> Found dependencies: Plack::Util, Plack::Middleware, Plack::Test, Plack::Builder
! Installing the dependencies failed: Module 'Plack::Middleware' is not installed, Module 'Plack::Util' is not installed, Module 'Plack::Test' is not installed, Module 'Plack::Builder' is not installed
! Bailing out the installation for Plack-Middleware-FixMissingBodyInRedirect-0.12.
--> Working on Import::Into
Fetching http://www.cpan.org/authors/id/H/HA/HAARG/Import-Into-1.002005.tar.gz ... OK
Configuring Import-Into-1.002005 ... OK
Building and testing Import-Into-1.002005 ... OK
Successfully installed Import-Into-1.002005
--> Working on Hash::Merge::Simple
Fetching http://www.cpan.org/authors/id/R/RO/ROKR/Hash-Merge-Simple-0.051.tar.gz ... OK
Configuring Hash-Merge-Simple-0.051 ... OK
==> Found dependencies: Test::Most, Clone
--> Working on Test::Most
Fetching http://www.cpan.org/authors/id/O/OV/OVID/Test-Most-0.34.tar.gz ... OK
Configuring Test-Most-0.34 ... OK
==> Found dependencies: Exception::Class, Test::Harness, Test::Exception, Test::Warn
--> Working on Exception::Class
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-1.39.tar.gz ... OK
Configuring Exception-Class-1.39 ... OK
==> Found dependencies: Class::Data::Inheritable
--> Working on Class::Data::Inheritable
Fetching http://www.cpan.org/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz ... OK
Configuring Class-Data-Inheritable-0.08 ... OK
Building and testing Class-Data-Inheritable-0.08 ... OK
Successfully installed Class-Data-Inheritable-0.08
Building and testing Exception-Class-1.39 ... OK
Successfully installed Exception-Class-1.39
--> Working on Test::Harness
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Test-Harness-3.35.tar.gz ... OK
Configuring Test-Harness-3.35 ... OK
Building and testing Test-Harness-3.35 ... OK
Successfully installed Test-Harness-3.35 (upgraded from 3.17)
--> Working on Test::Exception
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Exception-0.40.tar.gz ... OK
Configuring Test-Exception-0.40 ... OK
==> Found dependencies: Sub::Uplevel
--> Working on Sub::Uplevel
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-0.25.tar.gz ... OK
Configuring Sub-Uplevel-0.25 ... OK
Building and testing Sub-Uplevel-0.25 ... OK
Successfully installed Sub-Uplevel-0.25
Building and testing Test-Exception-0.40 ... OK
Successfully installed Test-Exception-0.40
--> Working on Test::Warn
Fetching http://www.cpan.org/authors/id/C/CH/CHORNY/Test-Warn-0.30.tar.gz ... OK
Configuring Test-Warn-0.30 ... OK
==> Found dependencies: Carp
--> Working on Carp
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Carp-1.38.tar.gz ... OK
Configuring Carp-1.38 ... OK
Building and testing Carp-1.38 ... OK
Successfully installed Carp-1.38 (upgraded from 1.11)
Building and testing Test-Warn-0.30 ... OK
Successfully installed Test-Warn-0.30
Building and testing Test-Most-0.34 ... OK
Successfully installed Test-Most-0.34
--> Working on Clone
Fetching http://www.cpan.org/authors/id/G/GA/GARU/Clone-0.38.tar.gz ... OK
Configuring Clone-0.38 ... OK
Building and testing Clone-0.38 ... OK
Successfully installed Clone-0.38
Building and testing Hash-Merge-Simple-0.051 ... OK
Successfully installed Hash-Merge-Simple-0.051
--> Working on MooX::Types::MooseLike
Fetching http://www.cpan.org/authors/id/M/MA/MATEU/MooX-Types-MooseLike-0.29.tar.gz ... OK
Configuring MooX-Types-MooseLike-0.29 ... OK
==> Found dependencies: Moo
--> Working on Moo
Fetching http://www.cpan.org/authors/id/H/HA/HAARG/Moo-2.000002.tar.gz ... OK
Configuring Moo-2.000002 ... OK
==> Found dependencies: Role::Tiny, Class::Method::Modifiers, Devel::GlobalDestruction
--> Working on Role::Tiny
Fetching http://www.cpan.org/authors/id/H/HA/HAARG/Role-Tiny-2.000001.tar.gz ... OK
Configuring Role-Tiny-2.000001 ... OK
Building and testing Role-Tiny-2.000001 ... OK
Successfully installed Role-Tiny-2.000001
--> Working on Class::Method::Modifiers
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-2.11.tar.gz ... OK
Configuring Class-Method-Modifiers-2.11 ... OK
Building and testing Class-Method-Modifiers-2.11 ... OK
Successfully installed Class-Method-Modifiers-2.11
--> Working on Devel::GlobalDestruction
Fetching http://www.cpan.org/authors/id/H/HA/HAARG/Devel-GlobalDestruction-0.13.tar.gz ... OK
Configuring Devel-GlobalDestruction-0.13 ... OK
==> Found dependencies: Sub::Exporter::Progressive, Devel::GlobalDestruction::XS
--> Working on Sub::Exporter::Progressive
Fetching http://www.cpan.org/authors/id/F/FR/FREW/Sub-Exporter-Progressive-0.001011.tar.gz ... OK
Configuring Sub-Exporter-Progressive-0.001011 ... OK
Building and testing Sub-Exporter-Progressive-0.001011 ... OK
Successfully installed Sub-Exporter-Progressive-0.001011
--> Working on Devel::GlobalDestruction::XS
Fetching http://www.cpan.org/authors/id/H/HA/HAARG/Devel-GlobalDestruction-XS-0.02.tar.gz ... OK
Configuring Devel-GlobalDestruction-XS-0.02 ... OK
Building and testing Devel-GlobalDestruction-XS-0.02 ... OK
Successfully installed Devel-GlobalDestruction-XS-0.02
Building and testing Devel-GlobalDestruction-0.13 ... OK
Successfully installed Devel-GlobalDestruction-0.13
Building and testing Moo-2.000002 ... OK
Successfully installed Moo-2.000002
Building and testing MooX-Types-MooseLike-0.29 ... OK
Successfully installed MooX-Types-MooseLike-0.29
--> Working on Safe::Isa
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Safe-Isa-1.000005.tar.gz ... OK
Configuring Safe-Isa-1.000005 ... OK
Building and testing Safe-Isa-1.000005 ... OK
Successfully installed Safe-Isa-1.000005
--> Working on Template
Fetching http://www.cpan.org/authors/id/A/AB/ABW/Template-Toolkit-2.26.tar.gz ... OK
Configuring Template-Toolkit-2.26 ... OK
==> Found dependencies: Test::LeakTrace, AppConfig
--> Working on Test::LeakTrace
Fetching http://www.cpan.org/authors/id/G/GF/GFUJI/Test-LeakTrace-0.15.tar.gz ... OK
Configuring Test-LeakTrace-0.15 ... OK
Building and testing Test-LeakTrace-0.15 ... OK
Successfully installed Test-LeakTrace-0.15
--> Working on AppConfig
Fetching http://www.cpan.org/authors/id/N/NE/NEILB/AppConfig-1.71.tar.gz ... OK
Configuring AppConfig-1.71 ... OK
==> Found dependencies: Test::Pod
--> Working on Test::Pod
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Test-Pod-1.51.tar.gz ... OK
Configuring Test-Pod-1.51 ... OK
Building and testing Test-Pod-1.51 ... OK
Successfully installed Test-Pod-1.51
Building and testing AppConfig-1.71 ... OK
Successfully installed AppConfig-1.71
Building and testing Template-Toolkit-2.26 ... OK
Successfully installed Template-Toolkit-2.26
--> Working on MIME::Base64
Fetching http://www.cpan.org/authors/id/G/GA/GAAS/MIME-Base64-3.15.tar.gz ... OK
Configuring MIME-Base64-3.15 ... OK
Building and testing MIME-Base64-3.15 ... OK
Successfully installed MIME-Base64-3.15 (upgraded from 3.08)
--> Working on JSON
Fetching http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-2.90.tar.gz ... OK
Configuring JSON-2.90 ... OK
Building and testing JSON-2.90 ... OK
Successfully installed JSON-2.90
! Installing the dependencies failed: Module 'Plack::Middleware::RemoveRedundantBody' is not installed, Module 'Plack::Middleware::FixMissingBodyInRedirect' is not installed, Module 'Plack' is not installed
! Bailing out the installation for Dancer2-0.163000.
93 distributions installed
[root@dancer-test ~]# echo $?
1
[root@dancer-test ~]# curl -L http://cpanmin.us | perl - --sudo Dancer2 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  296k  100  296k    0     0  28557      0  0:00:10  0:00:10 --:--:-- 68975
--> Working on Dancer2
Fetching http://www.cpan.org/authors/id/X/XS/XSAWYERX/Dancer2-0.163000.tar.gz ... OK
Configuring Dancer2-0.163000 ... OK
==> Found dependencies: Plack::Middleware::RemoveRedundantBody, Plack::Middleware::FixMissingBodyInRedirect, Plack
--> Working on Plack::Middleware::RemoveRedundantBody
Fetching http://www.cpan.org/authors/id/S/SW/SWEETKID/Plack-Middleware-RemoveRedundantBody-0.05.tar.gz ... OK
Configuring Plack-Middleware-RemoveRedundantBody-0.05 ... OK
==> Found dependencies: Plack::Middleware, Plack::Util, Plack::Test, Plack::Builder
--> Working on Plack::Middleware
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-1.0038.tar.gz ... OK
Configuring Plack-1.0038 ... OK
==> Found dependencies: Test::TCP
--> Working on Test::TCP
Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Test-TCP-2.14.tar.gz ... OK
Configuring Test-TCP-2.14 ... OK
==> Found dependencies: IO::Socket::IP
--> Working on IO::Socket::IP
Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-0.37.tar.gz ... OK
Configuring IO-Socket-IP-0.37 ... OK
Building and testing IO-Socket-IP-0.37 ... OK
Successfully installed IO-Socket-IP-0.37
Building and testing Test-TCP-2.14 ... OK
Successfully installed Test-TCP-2.14
Building and testing Plack-1.0038 ... OK
Successfully installed Plack-1.0038
Building and testing Plack-Middleware-RemoveRedundantBody-0.05 ... OK
Successfully installed Plack-Middleware-RemoveRedundantBody-0.05
--> Working on Plack::Middleware::FixMissingBodyInRedirect
Fetching http://www.cpan.org/authors/id/S/SW/SWEETKID/Plack-Middleware-FixMissingBodyInRedirect-0.12.tar.gz ... OK
Configuring Plack-Middleware-FixMissingBodyInRedirect-0.12 ... OK
Building and testing Plack-Middleware-FixMissingBodyInRedirect-0.12 ... OK
Successfully installed Plack-Middleware-FixMissingBodyInRedirect-0.12
Building and testing Dancer2-0.163000 ... OK
Successfully installed Dancer2-0.163000
6 distributions installed
[root@dancer-test ~]# echo $?
0
[root@dancer-test ~]# 

Note: 由于网络原因可能部分包在下载过程中会出错,只要重新在执行一次就可以了

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 前言
  • 概要
    • 安装
    相关产品与服务
    腾讯云 BI
    腾讯云 BI(Business Intelligence,BI)提供从数据源接入、数据建模到数据可视化分析全流程的BI能力,帮助经营者快速获取决策数据依据。系统采用敏捷自助式设计,使用者仅需通过简单拖拽即可完成原本复杂的报表开发过程,并支持报表的分享、推送等企业协作场景。
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档