The details: perl Makefile.PL cannot find libX11.so on this
Debian/squeeze system:
$ perl Makefile.PL
Use of uninitialized value $description in concatenation (.) or string
at Makefile.PL line 229.
Could not find libX11.so ()
Could not find windows.h (Win32 header)
OS unsupported: Headers or libraries not found for a supported GUI
Sorry, I can't find headers or libraries for a supported GUI
You need to install development headers and libraries for your GUI
For Win32: Platform SDK or a substitute
For X11: X11 headers and libraries, eg. the libX11-dev package on Debian
For OS X: Install Xcode
But the .so file is really there, but in a somewhat unusual location:
$ locate libX11.so
/usr/lib/x86_64-linux-gnu/libX11.so
/usr/lib/x86_64-linux-gnu/libX11.so.6
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
This location is mentioned in $Config{libpth}
$ perl -V:libpth
libpth='/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib';
But unfortunately in the Makefile.PL, libpth is split by pathsep (:),
but should be split by space.
Try the patch in
http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Imager-Screenshot-0.012-RT82489.patch
to fix the problem.
Regards,
Slaven