public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Win32::Eventlog: Not found after upgrade
@ 2014-01-29  6:23 Ulrich.Herbst
       [not found] ` <FC794E149BB444D28964362BC06CE2B9@OwnerPC311012>
  2014-01-29 12:03 ` Achim Gratz
  0 siblings, 2 replies; 3+ messages in thread
From: Ulrich.Herbst @ 2014-01-29  6:23 UTC (permalink / raw)
  To: cygwin

Hi,

yesterday I did an upgrade from a one-year-old cygwin installation.

After that, some perl scripts didn't work anymore...

Error was:
Can't locate Win32/Eventlog.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .).

Reinstalling perl/libwin32 didn't help.

As found in filesystem:
Win32::Eventlog is still available, but it is not in @INC-path as shown above, but in /usr/lib/perl5/vendor_perl/5.10/i686-cygwin.

Yes, I know, I could set PERL5LIB for my scripts... but I have to do this on many systems... 

So, what's the recommended way of getting Win32/Eventlog.pm to the right place ?

Uli

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: AW: Win32::Eventlog: Not found after upgrade
       [not found]   ` <634CFD657E419946BD70654E385A708F2491501A06@HE111508.emea1.cds.t-internal.com>
@ 2014-01-29  9:53     ` sisyphus1
  0 siblings, 0 replies; 3+ messages in thread
From: sisyphus1 @ 2014-01-29  9:53 UTC (permalink / raw)
  To: Ulrich.Herbst, cygwin



-----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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Win32::Eventlog: Not found after upgrade
  2014-01-29  6:23 Win32::Eventlog: Not found after upgrade Ulrich.Herbst
       [not found] ` <FC794E149BB444D28964362BC06CE2B9@OwnerPC311012>
@ 2014-01-29 12:03 ` Achim Gratz
  1 sibling, 0 replies; 3+ messages in thread
From: Achim Gratz @ 2014-01-29 12:03 UTC (permalink / raw)
  To: cygwin

 <Ulrich.Herbst <at> t-systems.com> writes:
> Reinstalling perl/libwin32 didn't help.

It would help, provided you actually installed the correct package
perl-libwin32 at the current version 0.28-3.  If you see something installed
in vendor_perl/5.10, then it comes from an earlier version of that package.


Regards,
Achim.


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-29 12:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-29  6:23 Win32::Eventlog: Not found after upgrade Ulrich.Herbst
     [not found] ` <FC794E149BB444D28964362BC06CE2B9@OwnerPC311012>
     [not found]   ` <634CFD657E419946BD70654E385A708F2491501A06@HE111508.emea1.cds.t-internal.com>
2014-01-29  9:53     ` AW: " sisyphus1
2014-01-29 12:03 ` Achim Gratz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).