# cpanm Swagger2 ! Finding Swagger2 on cpanmetadb failed. --> Working on Swagger2 Fetching http://www.cpan.org/authors/id/A/AS/ASHIMEMA/Swagger2-0.89.tar.gz ... OK Configuring Swagger2-0.89 ... OK ==> Found dependencies: JSON::Validator --> Working on JSON::Validator Fetching http://www.cpan.org/authors/id/J/JH/JHTHORSEN/JSON-Validator-1.07.tar.gz ... OK Configuring JSON-Validator-1.07 ... OK Building and testing JSON-Validator-1.07 ... FAIL ! Installing JSON::Validator failed. See /root/.cpanm/work/1511991134.32208/build.log for details. Retry with --force to force install it. ! Installing the dependencies failed: Module 'JSON::Validator' is not installed ! Bailing out the installation for Swagger2-0.89. Can't locate Test/Mojo.pm in @INC (you may need to install the Test::Mojo module) (@INC contains: /root/.cpanm/work/1511991134.32208/JSON-Validator-1.07/bl ib/lib /root/.cpanm/work/1511991134.32208/JSON-Validator-1.07/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/validate-recursive.t line 2. BEGIN failed--compilation aborted at t/validate-recursive.t line 2. t/validate-recursive.t ................. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Can't locate experimental.pm in @INC (you may need to install the experimental module) (@INC contains: /root/.cpanm/work/1511991423.32457/Mojolicious-7.57/blib/lib /root/.cpanm/work/1511991423.32457/Mojolicious-7.57/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /root/.cpanm/work/1511991423.32457/Mojolicious-7.57/blib/lib/Mojo/Base.pm line 97. BEGIN failed--compilation aborted at t/mojolicious/signatures_lite_app.t line 9. t/mojolicious/signatures_lite_app.t ........ Dubious, test returned 2 (wstat 512, 0x200) No subtests run Mojolicious::Plugin::Swagger2 is deprecated in favor of Mojolicious::Plugin::OpenAPI at (eval 87) line 1. Can't locate object method "data" via package "data://main/petstore.json" (perhaps you forgot to load "data://main/petstore.json"?) at /root/.cpanm/work/15 11991798.776/Swagger2-0.89/blib/lib/Swagger2.pm line 47. # Failed test 'No tests run for subtest "Lenghtwise Route introduction"' # at t/order-pathobjects-lengthwise.t line 14. Can't locate object method "data" via package "data://main/lenghtwise.json" (perhaps you forgot to load "data://main/lenghtwise.json"?) at /root/.cpanm/work/1511991798.776/Swagger2-0.89/blib/lib/Swagger2.pm line 47. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 1. t/order-pathobjects-lengthwise.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests Undefined subroutine &Mojo::Util::slurp called at t/parse-json.t line 12.