Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4965

Perl tutorial server doesn't work due to the lack of use statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.13.0
    • Tutorial
    • None

    Description

      I tried the Perl tutorial, but PerlServer failed as follows:

      thrift$ cd tutorial
      thrift/tutorial$ thrift --gen perl shared.thrift
      thrift/tutorial$ thrift --gen perl tutorial.thrift
      thrift/tutorial$ cd perl
      thrift/tutorial/perl$ perl -I../../lib/perl/blib/lib PerlServer.pl 
      Can't locate object method "new" via package "Thrift::ServerSocket" (perhaps you forgot to load "Thrift::ServerSocket"?) at PerlServer.pl line 109.
      

      Adding use Thrift::ServerSocket; solved this error.

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m