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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: Tutorial
    • Labels:
      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

          Activity

            People

            • Assignee:
              sekikn Kengo Seki
              Reporter:
              sekikn Kengo Seki

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment