perl5db.pl error resolution assistance...

2007-08-30
2013-04-24
  • quantAnalyst

    quantAnalyst - 2007-08-30

    Hello Everyone,

    I recently started using perl and the Open Perl IDE on windows.
    I am a pretty experienced UNIX perl user, however in my new position
    as a Quant investment analyst windows is the preferred platform at
    my firm.

    In any case, I recently installed both perl (i.e. ActivePerl 5.8.8)
    and the Open Perl IDE.  When I went to compile the Hello World program
    I got a compile error in the file ("perl5db.pl").  Specifically, the
    Error Output messages were:
    BEGIN failed--compilation aborted.
    Compilation failed in require at C:/Perl/lib/Win32.pm line 8.
    BEGIN failed--compilation aborted at C:/Perl/lib/Win32.pm line 82.
    Compilation failed in require at ..\IDE\Open_Perl_IDE_1.0.11.409/perl5db.pl line 438.
    BEGIN failed--compilation aborted.
    Compilation failed in require.
    BEGIN failed--compilation aborted.

    Any assistance on how to resolve this issue would be greatly
    appreciated.  Also I apologize if this is an often question.
    I wasn't sure if a common FAQ existed.

    Thanks in advance...

     
    • Michael Boam

      Michael Boam - 2007-09-01

      cagantz

      I can't offer much help with Open Perl IDE.
      I now use ptkdb
      http://search.cpan.org/dist/Devel-ptkdb/  (on win32 and *nix)
      It is easy enough to install off CPAN - i.e it works !

      And more recently apart from the fact I'm debugging much less now I use the testing modules:
      http://langworth.com/pages/perltestref

      And I guess I've gone a little retro with print statements.
      I'm finding Damian Conway's Smart Comments useful:
      http://search.cpan.org/dist/Smart-Comments/lib/Smart/Comments.pm

      Let us know how you get on

      Mike

       
    • Mattsteel

      Mattsteel - 2009-07-27

      Add this line

      use Win32;

      after the other 'use' clauses.
      M.

       
  • jhenk

    jhenk - 2010-02-06

    Nope.  No change.

    After adding the line, (and shutting down and re-starting PerlIDE, attempting a re-compile still produces:
    BEGIN failed-compilation aborted.
    Compilation failed in require at C:/Perl/lib/Win32.pm line 8.
    BEGIN failed-compilation aborted at C:/Perl/lib/Win32.pm line 82.
    Compilation failed in require at ..\..\..\Program Files\PerlIDE/perl5db.pl line 438.
    BEGIN failed-compilation aborted.
    Compilation failed in require.
    BEGIN failed-compilation aborted.

    I then discovered that PerlIDE re-wrote the perl5db.pl file (without the new use statement…) rendering my change moot.

    Specifics: WinXP Pro Sp2, Perl 5.10.0

     
  • CEStanley

    CEStanley - 2010-03-25

    I have the same issue and so does everyone I work with. I ask the simple question: Why is OpenPerl IDE compiling perl modules that already run? And why is that compile failing? Our copy of Perl is from cygwin but I doubt that affects anything.

    Loosing Ground…

     

Log in to post a comment.