logo       

Re: Can't locate RRDs.pm or HTML/Template.pm: msg#00059

db.rddtool.munin.general

Subject: Re: Can't locate RRDs.pm or HTML/Template.pm

Hi, Lupe and other folk, I very much appreciate your
response and help. I retried the installation as the
root user (everything is done as root). Unfortunately
I still got compilation error.
I must have missed something basic but also critical.
Please shed light on this:) I believe I am very close
to the resolution...

Here I post the steps I did:

1. Install all dependencies (cgilib, freetype2, etc)

2. In rrdTool directory, set env:
env CPPFLAGS="-I/opt/cgilib-0.5 \

-I/usr/lib/perl5/site_perl/5.8.5/include/libart-2.0 \

-I/usr/lib/perl5/site_perl/5.8.5/include \

-I/usr/lib/perl5/site_perl/5.8.5/include/freetype2"
LDFLAGS="-L/usr/lib/perl5/site_perl/5.8.5
-L/opt/cgilib-0.5" ./configure
--prefix=/usr/lib/perl5/site_perl/5.8.5

Note: /usr/lib/perl5/site_perl/5.8.5 is where I put
freetype2, cgilib, etc and I want to install rrd here.
After this, I saw below message in the shell (config
is successful)
----------------------------------------------------------------
Config is DONE!

With MMAP IO: yes
Perl Modules: perl_piped perl_shared
Perl Binary: /usr/bin/perl
Perl Version: 5.8.5
Perl Options:
PREFIX=/usr/lib/perl5/site_perl/5.8.5
LIB=/usr/lib/perl5/site_perl/5.8.5/lib/perl/5.8.5
Tcl Config:
Build rrdcgi: yes
Build librrd MT: yes


Type 'make' to compile the software and use 'make
install' to
install everything to: /usr/lib/perl5/site_perl/5.8.5.
____________________________________________________________________
3. I modified below line in the Makefile from:
PERL_MAKE_OPTIONS =
PREFIX=/usr/lib/perl5/site_perl/5.8.5
LIB=/usr/lib/perl5/site_perl/5.8.5/lib/perl/5.8.5
to:
PERL_MAKE_OPTIONS =
PREFIX=/usr/lib/perl5/site_perl/5.8.5
LIB=/usr/lib/perl5/site_perl/5.8.5
(basically set LIB option)
-- if I didn't make any change to the Makefile, it
didn't work either.

4. execute "make"

5. execute "make install"
After that I saw below message in the shell:
make[2]: Leaving directory
`/opt/rrdtool-1.2.0/examples'
make[1]: Leaving directory
`/opt/rrdtool-1.2.0/examples'
make[1]: Entering directory `/opt/rrdtool-1.2.0'
make[2]: Entering directory `/opt/rrdtool-1.2.0'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/opt/rrdtool-1.2.0'
make[1]: Leaving directory `/opt/rrdtool-1.2.0'

-- I believe the installation succeeded because I can
also find below files and dirctory:

auto(is a directory) ntmake.pl perllocal.pod
RRDs.pm

under:

/usr/lib/perl5/site_perl/5.8.5/lib/perl/5.8.5/i386-linux-thread-multi

6. Then in the Munin bin directory (/opt/munin/bin) I
execute the munin-cron script (I disabled the last 3
lines for debugging so that only munin-update is ran)
I saw below error message:
Can't locate RRDs.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at
/usr/lib/perl5/site_perl/5.8.5/Munin.pm line 57.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.5/Munin.pm line 57.
Compilation failed in require at
/opt/munin/lib/munin-update line 29.
BEGIN failed--compilation aborted at
/opt/munin/lib/munin-update line 29.

--- It looks Munin.pm is not looking at the RRDs.pm
file located under:
/usr/lib/perl5/site_perl/5.8.5/lib/perl/5.8.5/i386-linux-thread-multi
(where it is installed).

Then if I copy RRDs.pm and other related files to a
directory Munin.pm looks at, I got error message in my
previous post.

How could I install them to a directory Munin.pm looks
at? What is the easiest way to get it work?





--- Lupe Christoph <lupe@xxxxxxxxxxxxxxxxx> wrote:

> Quoting Nicolai Langfeldt <janl@xxxxxxxxx>:
> > Victor skrev:
>
> > > Can't load
> > >
>
'/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so'for
> > > module RRDs: librrd.so.2: cannot open shared
> object
> > > file: No such file or directory at
> > >
>
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm
> > > line 230.
> > > at /usr/lib/perl5/site_perl/5.8.5/Munin.pm line
> 57
> > > Compilation failed in require at
> > > /usr/lib/perl5/site_perl/5.8.5/Munin.pm line 57.
>
> > You may get better help for that in a RRD forum.
> ... I've not seen that
> > message myself, but it looks like it's saying that
> you either do not
> > have read access to
> >
>
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so,
> or it
> > may be unloadable due to some other problem.
>
> I don't think so. The error says "No such file or
> directory", so I presume
> the RRDtool installation is incomplete. Victor, if
> you installed it as a
> CentOS package, you better ask in a CenTtOS forum.
> If you compiled and
> installed it yourself, try again and look closely
> for error messages.
>
> HTH,
> Lupe Christoph
> --
> | lupe@xxxxxxxxxxxxxxxxx |
> http://www.lupe-christoph.de/ |
> | Perhaps software development may finally begin to
> improve if we can |
> | kill the idea that ignorant and inexperienced
> novices ought to be able |
> | to maintain code that matters.
> chromatic |
>




____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise