Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello

I want to install Sys::Syslog, but I saw in CPAN that I will need to install the whole perl again...I don't want to do that.

So, I copied over the Syslog.pm file to the C:\perl\lib directory and I get the error message that it Can't locate loadable object for module Sys::Syslog in @INC.

What do I need to do to install Sys::Syslog, without needing to install whole Perl again?

Thanks

  • Comment on Installing module Sys::Syslog without installing whole Perl

Replies are listed 'Best First'.
Re: Installing module Sys::Syslog without installing whole Perl
by gellyfish (Monsignor) on Aug 15, 2005 at 17:01 UTC

    Well the module doesn't have a separate life on CPAN outside the Perl core, so you can't just download the it and install it separately. I am not quite sure why you want to do this as it should be installed with your Perl installation.

    If you really do just want to install the latest version of the module, you can do this without reinstalling the Perl you will need to download the latest perl source and then run ./Configure as appropriate and then cd ext/Sys/Syslog and run the usual build procedure, however you will see test failures as the test scripts are set up to work in the Perl build environment, this is fixable but I haven't the time to look at it right now.

    update: Having just done an experiment it looks like you can just copy the ext/Sys/Syslog directory somewhere else and then comment out the  @INC = '../lib'; line in t/syslog.t and it all appears to work fine as a normal module install.

    /J\

      I am not quite sure why you want to do this as it should be installed with your Perl installation.

      Maybe he wants to upgrade it without upgrading perl.

Re: Installing module Sys::Syslog without installing whole Perl
by nedals (Deacon) on Aug 15, 2005 at 17:08 UTC

    So, I copied over the Syslog.pm file to the C:\perl\lib directory and I get the error message that it Can't locate loadable object for module Sys::Syslog in @INC.

    Put it in C:\perl\lib\Sys.
    '::' acts as a directory 'splitter' when using modules

      Well, yeah except the error was Can't locate loadable object for module Sys::Syslog in @INC which indicates that the .pm file of the module was located succesfully but perl couldn't locate the compiled XS component required.

      /J\

        Not to mention that I'm really skeptical that even if you try and compile it you're going to have syslog(3) on a Windows box (under Cygwin maybe it'd be available).

        --
        We're looking for people in ATL