Professional Web Applications Themes

Module may not be right one? - PERL Modules

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

  1. #1

    Default Module may not be right one?

    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

    mmccaws2 Guest

  2. #2

    Default Re: Module may not be right one?

    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

    Paul Lalli Guest

  3. #3

    Default Re: Module may not be right one?


    "Paul Lalli" <mritty> 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 doented.
    Alternatively, I *think* the following will do the trick:

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

    or perhaps it needs to be:

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

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

    Cheers,
    Rob


    Sisyphus Guest

  4. #4

    Default Re: Module may not be right one?

    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 [url]http://www.roth.net/perl/packages[/url]

    --
    Affijn, Ruud

    "Gewoon is een tijger."


    Dr.Ruud Guest

  5. #5

    Default Re: Module may not be right one?


    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 [url]http://www.roth.net/perl/packages[/url]
    >
    > --
    > Affijn, Ruud
    >
    > "Gewoon is een tijger."
    You guys are great. I'm set.

    Thanks

    mmccaws2 Guest

Similar Threads

  1. RFC: New module 'Module::Bundled::Files'
    By Paul Campbell in forum PERL Modules
    Replies: 3
    Last Post: August 27th, 10:51 PM
  2. Module DBD:CSV
    By trampolien in forum PERL Modules
    Replies: 0
    Last Post: May 25th, 03:12 PM
  3. Using DBI Module
    By Satish in forum PERL Modules
    Replies: 1
    Last Post: May 13th, 05:42 AM
  4. Module Object and sub module function
    By Dan Muey in forum PERL Beginners
    Replies: 15
    Last Post: November 11th, 04:45 PM
  5. Replies: 2
    Last Post: July 11th, 04:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139