public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* WG: AW: Win32::Eventlog: Not found after upgrade
@ 2014-01-29 10:51 Ulrich.Herbst
  2014-01-29 11:58 ` sisyphus1
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich.Herbst @ 2014-01-29 10:51 UTC (permalink / raw)
  To: cygwin

Hi Rob,

1. I use perl 5.14.

2. I was wrong on "Win32::Eventlog from perl 5.10 is working with 5.14"... This doesn't work at all (perl just ends without any output... but that's something completely different - we haven't to discuss this)

3. I don't want to build Win32::Eventlog on my own... for these reasons:
- I had to do it on many systems...
- We don't have compilers and make and tools... installed on them (production environments)

So - will be in the near future a libwin32-version including Win32::Eventlog running with Perl5.14 available from cygwin installer ?

Uli




> " 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] 2+ messages in thread

* Re: WG: AW: Win32::Eventlog: Not found after upgrade
  2014-01-29 10:51 WG: AW: Win32::Eventlog: Not found after upgrade Ulrich.Herbst
@ 2014-01-29 11:58 ` sisyphus1
  0 siblings, 0 replies; 2+ messages in thread
From: sisyphus1 @ 2014-01-29 11:58 UTC (permalink / raw)
  To: Ulrich.Herbst, cygwin



-----Original Message----- 
From: Ulrich.Herbst

> 3. I don't want to build Win32::Eventlog on my own... for these reasons:
> - I had to do it on many systems...
> - We don't have compilers and make and tools... installed on them 
> (production environments)

Ok - alternatively it's only *2* files that need to be installed - 
Win32/EventLog.pm and auto/Win32/EventLog/EventLog.dll.
After you've manually built the module on your local machine, you'll find 
the former in blib/lib and the latter in blib/arch.
Assuming you're running the same version of perl across all systems, it's 
just a matter of installing those files into one of the @INC directories on 
all machines.
By convention, I think you'd install them into 
/usr/lib/perl5/site_perl/5.14 - so you'd end up with
/usr/lib/perl5/site_perl/5.14/Win32/EventLog.pm
and
/usr/lib/perl5/site_perl/5.14/auto/Win32/EventLog/EventLog.dll

If it's simple for you to effect that across the various systems, then you 
could go with that.

> So - will be in the near future a libwin32-version including 
> Win32::Eventlog running with Perl5.14 available from cygwin installer ?

I'm sort of thinking it should already be there. I'm running perl-5.14.2 on 
Cygwin-1.7.17, so I figured I'd test for myself ... alas, I can't find a 
mirror that can provide setup.ini, and setup.exe aborts at that point.
So I guess we wait for someone who *knows* to come along.

Btw, it would really help if, in your testing, you'd try to load 
Win32::EventLog instead of Win32::Eventlog. In some situations it probably 
doesn't matter, but testing the loading of "Win32::Eventlog" introduces an 
(unnecessary) uncertainty with which it would be better to go without.
The thing is that, although Windows is not case-sensitive, perl is - and 
failing to attend to case-sensitivity can lead to strange failures.

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] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-29 10:51 WG: AW: Win32::Eventlog: Not found after upgrade Ulrich.Herbst
2014-01-29 11:58 ` sisyphus1

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