[smokeping-users] error message? (n00b alert)

G.W. Haywood ged at jubileegroup.co.uk
Mon May 12 11:53:52 CEST 2008


Hi there,

On Mon, 12 May 2008, Ton Muller wrote:

> ... i got this message when i start smokeping.
>
> # smokeping
> Can't locate LWP/UserAgent.pm in @INC

Smokeping is looking for a Perl module called LWP::UserAgent.pm and it
isn't in any of the places that it's been told to look.  The places it
looks are listed in a Perl array called @INC which is just a list of
paths, like the environment variables PATH (which is used to search
for executables) or MANPATH (for 'man' pages).  The documentation for
Smokeping shows how to add paths to @INC with the 'use lib' statement.

> (@INC contains: lib
> /usr/libdata/perl5/i386-openbsd/5.8.8
> /usr/local/libdata/perl5/i386-openbsd/5.8.8
> /usr/libdata/perl5
> /usr/local/libdata/perl5
> /usr/local/libdata/perl5/site_perl/i386-openbsd
> /usr/libdata/perl5/site_perl/i386-openbsd
> /usr/local/libdata/perl5/site_perl
> /usr/libdata/perl5/site_perl
> /usr/local/lib/perl5/site_perl .)

The list above is the contents of @INC, which is where Smokeping looks.

> at /usr/local/libdata/perl5/site_perl/Smokeping/Slave.pm line 8.

This is the place where the module was requested (hopefully - there
can sometimes be problems with Perl line numbering if you're using
things like speedy-backend).  Since you're not developing the code,
you don't really care what the line number is anyway.

> BEGIN failed--compilation aborted at
> /usr/local/libdata/perl5/site_perl/Smokeping/Slave.pm line 8.
> Compilation failed in require at
> /usr/local/libdata/perl5/site_perl/Smokeping.pm line 18.
> BEGIN failed--compilation aborted at
> /usr/local/libdata/perl5/site_perl/Smokeping.pm line 18.
> Compilation failed in require at /usr/local/bin/smokeping line 6.
> BEGIN failed--compilation aborted at /usr/local/bin/smokeping line 6.

This is the chain of statements which resulted in the failing call.

..ooOoo..

Now all you have to do is make sure that your LWP::UserAgent is in one
of these places.  If you don't have LWP::UserAgent then take a trip to
CPAN and get it.  If you do have it, but it is not in one of the
places listed in @INC, then you can add that directory as explained in
the Smokeping documentation.  Look at the file /usr/local/bin/smokeping
using any text editor.  If you type

perldoc /usr/local/bin/smokeping

or

man smokeping

you will see the documentation that you need.

--

73,
Ged.



More information about the smokeping-users mailing list