Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Strawberry Perl and Capture.pm

  • 08-01-2010 03: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