Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2433

Update the dependencies for Perl binding in BUILD.md

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0
    • Component/s: doc, perl
    • Labels:
      None

      Description

      I tried to run the tests for Perl bindings, but failed as follows:

      $ cd lang/perl
      $ ./build.sh test
      
      (snip)
      
      t/01_names.t ....... 1/?
      #   Failed test 'use Avro::Schema;'
      #   at t/01_names.t line 23.
      #     Tried to use 'Avro::Schema'.
      #     Error:  Can't locate Error/Simple.pm in @INC (@INC contains: /home/sekikn/repo/avro/lang/perl/inc /home/sekikn/repo/avro/lang/perl/blib/lib /home/sekik
      n/repo/avro/lang/perl/blib/arch /home/sekikn/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux /home/sekikn/perl5/perlbrew/perls/perl-5.14.2
      /lib/site_perl/5.14.2 /home/sekikn/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux /home/sekikn/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at /h
      ome/sekikn/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/parent.pm line 20.
      # BEGIN failed--compilation aborted at /home/sekikn/repo/avro/lang/perl/blib/lib/Avro/Schema.pm line 830.
      # Compilation failed in require at (eval 6) line 2.
      # BEGIN failed--compilation aborted at (eval 6) line 2.
      
      (snip)
      
      Files=7, Tests=81,  1 wallclock secs ( 0.05 usr  0.02 sys +  0.23 cusr  0.03 csys =  0.33 CPU)
      Result: FAIL
      Failed 6/7 test programs. 79/81 subtests failed.
      Makefile:793: recipe for target 'test_dynamic' failed
      make: *** [test_dynamic] Error 255
      

      This is due to the lack of the Error::Simple module, which is not a core module for Perl 5.24.1. But BUILD.md doesn't refer to this dependency.

      The following packages must be installed before Avro can be built:
      
      (snip)
      
       - Perl: Perl 5.24.1 or greater, gmake, Module::Install,
         Module::Install::ReadmeFromPod, Module::Install::Repository,
         Math::BigInt, JSON::XS, Try::Tiny, Regexp::Common, Encode,
         IO::String, Object::Tiny, Compress::ZLib, Test::More,
         Test::Exception, Test::Pod
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                sekikn Kengo Seki
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: