AW: Win32::Eventlog: Not found after upgrade

sisyphus1@optusnet.com.au sisyphus1@optusnet.com.au
Wed Jan 29 09:53:00 GMT 2014



-----Original Message----- 
From: Ulrich.Herbst@t-systems.com

> " Trying to "use Win32::Eventlog;" will not work - though I don't think 
> that's the error you're up against here."
> => yes, it will work (this is my current workaround):
> $ export PERL5LIB=/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/
> $ perl -MWin32::Eventlog -e print
> $

Well ... which perl are you using here - 5.10 or 5.14 ?

If you're using 5.14 then either:
1) The Win32::EventLog that's in 
/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/ was built for perl-5.14; or
2) The Win32::EventLog that you're loading is in some place other than 
/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/; or
3) The Win32::Eventlog that you're loading is not the 
http://search.cpan.org/~jdb/Win32-EventLog-0.077 that I'm assuming it is; or
4) Your persistence in not attending to the case-sensitivity of the module's 
name is doing something of which I'm unaware.


> " Win32::EventLog is not part of libwin32 - so installing libwin32 won't 
> help."
> Yes, I think, Eventlog is part of libwin32.

I stand corrected on that.

> a) Mv /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/ out of the way
> b) re-install perl/libwin32
> c) => freshly installed /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/ with 
> Eventlog available.
>
> So, in summary, I think: perl/libwin32 is not freshly built againt perl 
> 5.14... that's my problem.

That sounds a distinct possibility.
So ... assuming you want it for perl-5.14, try installing Win32::EventLog 
using either the 'cpan -i' command or the manual method (both of which were 
outlined in my earlier post). Just make sure that the perl you use when 
you're doing that is the one that you want.
I've just tried the "manual method", and it worked fine for me. (Note that 
you run 'perl Makefile.PL' and not the fat-fingered 'perl Maskefile.PL' that 
I presented earlier.)

It's quite likely that 'cpan -i Bundle::libwin32' will also work if you want 
to install the whole lot of libwin32 - though there's no reason that you 
can't install *just* Win32::EvenLog if that's all you need.

Cheers,
Rob


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list