This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Installing the Win32:: modules for Cygwin Perl


I have a patch for libwin32-0.191 to build under Cygwin Perl, both 5.6
and 5.8. This is based on the work of Clive Nicolson a while back.

This will give you the core Win32 methods, as well libraries like
Win32::APIFile, Win32::Sound, Win32::Clipboard etc.

There is still quite a bit of work to be done to cleanly integrate these
into Cygwin Perl so that no patching is necessary

That aside, from a user perspective these _should_ work fine (no
guarantees.) Just remember that while ActivePerl will not require you to
use Win32 for core methods like Win32::GetOsVersion(), this version
does. Also Win32 Perl code may use Win32 commands and paths, in which
case you may have to do some porting.

You are better off using the newer Cygwin packages, especially gcc and
w32api, but Im curious to see if older configurations will also work.

Instructions, from the Cygwin shell:

wget http://search.cpan.org/CPAN/authors/id/G/GS/GSAR/libwin32-0.191.zip
unzip libwin32-0.191.zip
wget http://www.io.com/~rkitover/libwin32-0.191-port.diff
patch p0 < libwin32-0.191-port.diff
cd libwin32-0.191
perl Makefile.PL && make && make test && make install

Do NOT download the patch using a browser such as IE, the line ends will
get converted and the patch will fail.

Everything should work. If something fails, please send me an error
report using this method:

make test &> makelog
gzip -9 makelog

and mail makelog.gz to caelum@debian.org so I can figure out what went
wrong.

Enjoy.

-- 
Rafael Kitover


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]