ford has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have installed the module Imager::Screenshot. Initially i found some difficulties in installing but then i did some changes in the Makefile.PL and got the module installed. Now when i try to execute some scripts it shows me an error No drivers installed... Could anyone help me in this issue Thanks in Advance Peter

Replies are listed 'Best First'.
Re: Help regarding a Perl Script
by Velaki (Chaplain) on Jan 17, 2008 at 11:45 UTC

    What difficulties did you have with it?

    Since you have modified the Makefile.PL from the packaged version, you might wish to post what changes you've made, so we may be better enabled to assist you with your dilemma.

    Hope this helped,
    -v

    "Perl. There is no substitute."
      Hi, In the Makefile.PL there is a condition that says unless (@objs > 1) { die "NA: Sorry, I can't find headers or libraries for a supported GUI\n" } I've changed the first line to unless (@objs > 0) after that the module got installed. may be you can help me with this information Thanks in Advance Ford...
        That wasn't a smart thing to do, the module won't work with without it
Re: Help regarding a Perl Script
by tonyc (Hermit) on Jan 19, 2008 at 09:36 UTC

    Hi, I'm the author of Imager::Screenshot

    Makefile.PL looks for headers and libraries needed to work with whatever windowing system you're using, whether it's MS Windows or the X Window system.

    If it can't find those libraries it's not going to work.

    If you're using Windows (cygwin, mingw, VC++) you'll need the Windows SDK headers and libraries available.

    If you're using a Unix box of some sort (not Mac OS X) you'll need the X libraries and headers available.