Antwort: Re: [hobbit] OpenSUSE 11.1: Devmon: Perl-Compile-Error for BER.pm

Hermann-Josef Beckers hj.beckers at kreis-steinfurt.de
Mon Nov 23 11:51:11 CET 2009


Jerald Sheets <questy at gmail.com> schrieb am 20.11.2009 13:53:26:

HI Jerald (and Gé)
...> 
> Well, *you* know where it is, but Perl doesn't:
> 
> Your find locates it here:
> 
> /usr/lib/perl5/vendor_perl/5.10.0/Convert/BER.pm
> 
> but Perl looked for it here:
> 
> /home/xymon/devmon-0.3.1-beta1/modules
>  /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi
>  /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-
> thread-multi 
>  /usr/lib/perl5/site_perl/5.10.0
>  /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi 
>  /usr/lib/perl5/vendor_perl/5.10.0 
>  /usr/lib/perl5/vendor_perl
> 
> That "Convert" directory is not being looked into for Perl modules. 
> Unfortunately, it never will look anywhere other than what was 
> compiled into it at install time.  Were you the programmer, you 
> could make perl see the module a number of ways. 
> 
> You could add path to the module at the top of your script:
> 
> use lib /usr/lib/perl5/vendor_perl/5.10.0/Convert;
> 
> You could export a variable at your environment level:
> 
> export PERL5LIB=$PERL5LIB:/usr/lib/perl5/vendor_perl/5.10.0/Convert
>
This var is not set in my installation. Setting it and/or copying the
modules from /usr/... to ~/devmon.../modules finds the Convert-module,
but devmon complains next about not finding the SNMP module, which,
according to a cpan "install SNMP" is uptodate.
 
But following your further suggestions and RTFMing again, seems SNMP 
does not include SNMP::SESSION, which devmon requires. Getting and 
compiling it from the website mentioned in devmon's INSTALLATION 
text, devmon works now.

Sorry for the noise and thanks for your reply, which brought me on the
right track.

Yours
hjb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20091123/e4f0347f/attachment.html>


More information about the Xymon mailing list