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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Strawberry Perl and Capture.pm

  • 08-01-2010 2:18pm
    #1
    Closed Accounts Posts: 18,966 ✭✭✭✭


    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,966 ✭✭✭✭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