Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Strawberry Perl and Capture.pm

Options
  • 08-01-2010 3:18pm
    #1
    Closed Accounts Posts: 18,969 ✭✭✭✭


    Hi,

    I have a problem installing the Win32::Capture module on windows. It seems the module has a syntax error in the Makefile.pl. Using strawberry perl's cpan trying a install Win32::Capture, I get:

    String found where operator expected at Makefile.PL line 12, near "'Win32::GUI::DIBitmap'" (Missing semicolon on previous line?)

    The makefile looks like this:
    use ExtUtils::MakeMaker;
    
    die "Win32::Capture can only be installed on MS Win32 Platforms\n Makefile not written\n\n" unless $^O eq 'MSWin32';
    
    WriteMakefile(
        NAME         => 'Win32::Capture',
        VERSION_FROM => 'lib/Win32/Capture.pm', # finds $VERSION
        AUTHOR       => 'LiloHuang <kenwu@cpan.org>',
        ABSTRACT_FROM=> 'lib/Win32/Capture.pm',
        PREREQ_PM    => { 
        'Win32::API'            => 0
        'Win32::GUI::DIBitmap'            => 0
       }
    );
    

    Has anyone any thoughts on what I might do next to try to resolve this issue?

    I am running :
    Windows 7(dont ask) 64-bit
    Strawberry Perl 5.8.9.3

    Any ideas?


Comments

  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    Have installed on XP and have the same problem.

    Does anyone know how to specify the path of a perl module in a perl script?


  • Closed Accounts Posts: 1 Accio


    Hi.

    Edit Makefile.PL and add a comma to the end of the 'Win32::API' line:
        ...
        PREREQ_PM    => { 
        'Win32::API'            => 0,
        'Win32::GUI::DIBitmap'            => 0
       }
        ...
    
    After that, if you have the dependencies installed,you should be able to do a standard "dmake; dmake test; dmake install" to install it.

    John.
    --


Advertisement