Module may not be right one?

Module may not be right one?

am 27.04.2006 18:57:29 von mmccaws2

Hi

My script, originally from Roth, is trying to run win32::daemon. I get
this error message

D:\Perl\perlstuff>perl Example_5_3.pl
Can't locate Win32/Daemon.pm in @INC (@INC contains: D:/Perl/lib
D:/Perl/site/li
b .) at Example_5_3.pl line 16.
BEGIN failed--compilation aborted at Example_5_3.pl line 16.

The win32::daemon module that is installed is from activestate called
Win32-Daemon-Simple. Are these not compatible?

I tried to download the zip and install roth's win32::daemon

however it complains and stops, what I am doing wrong? Here is the
commands I tried neither worked

D:\Perl\pkgs>ppm install d:\perl\pkgs\win32-daemon.ppd
Error: no suitable installation target found for package Win32-Daemon.

D:\Perl\pkgs>ppm install d:\perl\pkgs\daemon.pm
Searching for 'd:\perl\pkgs\daemon.pm' returned no results. Try a
broader search
first.

Thanks
Mike

Re: Module may not be right one?

am 27.04.2006 19:32:38 von Paul Lalli

mmccaws2 wrote:
> My script, originally from Roth, is trying to run win32::daemon. I get
> this error message
>
> D:\Perl\perlstuff>perl Example_5_3.pl
> Can't locate Win32/Daemon.pm in @INC (@INC contains: D:/Perl/lib
> D:/Perl/site/li
> b .) at Example_5_3.pl line 16.
> BEGIN failed--compilation aborted at Example_5_3.pl line 16.
>
> The win32::daemon module that is installed is from activestate called
> Win32-Daemon-Simple. Are these not compatible?

It has nothing to do with compatability, they're simply not the same
module, any more than Foo::Bar is the same module as Data::Doit. Just
because they have similar names, doesn't mean they're even related, let
alone the same thing.

If your module needs Win32::Daemon (not win32::daemon - case matters),
then you need to install Win32::Daemon, not Win32::Daemon::Simple.

> I tried to download the zip and install roth's win32::daemon
>
> however it complains and stops, what I am doing wrong? Here is the
> commands I tried neither worked
>
> D:\Perl\pkgs>ppm install d:\perl\pkgs\win32-daemon.ppd

I don't know a lot about ppm, but that seems odd. You generall just
provide the name of the module, and let ppm go out to its repositiries
and find it:

ppm install Win32::Daemon

Paul Lalli

Re: Module may not be right one?

am 28.04.2006 02:36:51 von Sisyphus

"Paul Lalli" wrote in message
..
..
>
> ppm install Win32::Daemon
>

For that to work you would probably have to first add Roth's repository to
ppm's list - not sure how to do that but it should be well documented.
Alternatively, I *think* the following will do the trick:

ppm install http://www.roth.net/perl/packages/win32-daemon.ppd

or perhaps it needs to be:

ppm install http://www.roth.net/perl/packages/Win32-Daemon.ppd

The instructions at http://www.roth.net/perl/ are pretty crappy and
outdated, but I think it's all there and accessible.

Cheers,
Rob

Re: Module may not be right one?

am 28.04.2006 03:10:29 von rvtol+news

Sisyphus schreef:
> Paul Lalli:

>> ppm install Win32::Daemon
>
> For that to work you [...] have to first add Roth's
> repository to ppm's list

ppm> rep add RothConsulting http://www.roth.net/perl/packages

--
Affijn, Ruud

"Gewoon is een tijger."

Re: Module may not be right one?

am 28.04.2006 16:42:51 von mmccaws2

Dr.Ruud wrote:
> Sisyphus schreef:
> > Paul Lalli:
>
> >> ppm install Win32::Daemon
> >
> > For that to work you [...] have to first add Roth's
> > repository to ppm's list
>
> ppm> rep add RothConsulting http://www.roth.net/perl/packages
>
> --
> Affijn, Ruud
>
> "Gewoon is een tijger."

You guys are great. I'm set.

Thanks