Click here to get back home

Module may not be right one?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Module may not be right one? mmccaws2 04-27-2006
Posted by mmccaws2 on April 27, 2006, 12:57 pm
Please log in for more thread options


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


Posted by Paul Lalli on April 27, 2006, 1:32 pm
Please log in for more thread options


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


Posted by Sisyphus on April 27, 2006, 8:36 pm
Please log in for more thread options



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



Posted by Dr.Ruud on April 27, 2006, 9:10 pm
Please log in for more thread options


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



Posted by mmccaws2 on April 28, 2006, 10:42 am
Please log in for more thread options



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


Similar ThreadsPosted
Lower case module name for non-pragma module January 4, 2005, 10:19 am
RFC: New module 'Module::Bundled::Files' August 26, 2005, 3:49 pm
help with an MD5.pm module!! September 3, 2005, 11:39 pm
Looking for RTP module December 9, 2004, 9:17 pm
module for FFT May 9, 2005, 3:06 pm
The 'if' module June 1, 2006, 8:18 pm
The 'if' module June 1, 2006, 8:26 pm
use module March 3, 2007, 5:13 am
Name my Module! July 27, 2007, 6:46 pm
Yet another TL1 module August 7, 2007, 4:12 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap