[rrd-users] Unable to specify which version of RRDs perl module to use

Sam Umbach sumbach at gmail.com
Tue Apr 17 02:03:19 CEST 2007


On 4/15/07, David Ball <davidtball at gmail.com> wrote:
>    Thanks very much, Sam.  That was the ticket.  I was CERTAIN I had
> tried specifying the version yesterday at some point, but obviously
> hadn't done so correctly, or was being tripped up by something else.
>   Thanks again.  Much appreciated.

David,

I'm glad that worked for you.  In the future, here's a nice trick to
diagnose perl module loading errors:

$ perl -MRRDs -MData::Dumper -e 'print Dumper(\@INC, \%INC);'
$VAR1 = [
          '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi',
          '/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi',
          '/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi',
          '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi',
          '/usr/lib/perl5/site_perl/5.8.8',
          '/usr/lib/perl5/site_perl/5.8.7',
          '/usr/lib/perl5/site_perl/5.8.6',
          '/usr/lib/perl5/site_perl/5.8.5',
          '/usr/lib/perl5/site_perl',
          '/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi',
          '/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi',
          '/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi',
          '/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi',
          '/usr/lib/perl5/vendor_perl/5.8.8',
          '/usr/lib/perl5/vendor_perl/5.8.7',
          '/usr/lib/perl5/vendor_perl/5.8.6',
          '/usr/lib/perl5/vendor_perl/5.8.5',
          '/usr/lib/perl5/vendor_perl',
          '/usr/lib/perl5/5.8.8/i386-linux-thread-multi',
          '/usr/lib/perl5/5.8.8',
          '.'
        ];
$VAR2 = {
          'bytes.pm' => '/usr/lib/perl5/5.8.8/bytes.pm',
          'XSLoader.pm' =>
'/usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm',
          'Carp.pm' => '/usr/lib/perl5/5.8.8/Carp.pm',
          'warnings/register.pm' => '/usr/lib/perl5/5.8.8/warnings/register.pm',
          'Exporter.pm' => '/usr/lib/perl5/5.8.8/Exporter.pm',
          'vars.pm' => '/usr/lib/perl5/5.8.8/vars.pm',
          'strict.pm' => '/usr/lib/perl5/5.8.8/strict.pm',
          'warnings.pm' => '/usr/lib/perl5/5.8.8/warnings.pm',
          'overload.pm' => '/usr/lib/perl5/5.8.8/overload.pm',
          'AutoLoader.pm' => '/usr/lib/perl5/5.8.8/AutoLoader.pm',
          'RRDs.pm' =>
'/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/RRDs.pm',
          'Config.pm' =>
'/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Config.pm',
          'DynaLoader.pm' =>
'/usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm',
          'Data/Dumper.pm' =>
'/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Data/Dumper.pm'
        };

If you can inspect the output when this is called from the command
line and compare it when called from Apache, you would have quickly
seen the issue.

-Sam



More information about the rrd-users mailing list