|
Re: Can't locate RRDs.pm or HTML/Template.pm: msg#00060db.rddtool.munin.general
On Wednesday, 2006-12-13 at 13:41:15 -0800, Victor wrote: > 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: > -- 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 Your perl setup is screwed. You should only have one version directory in @INC. Not all from 5.8.0 till 5.8.5. > --- 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). It isn't the module that isn't looking, it's perl. You should install RRDs.pm in one of the directories perl has in @INC. > 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. This one? >> 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. That points to a badly installed librrd.so.2. All your problems are due to a bad installation of RRDtool. We aren't the people who know how to do that right. And there is probably nobady here who knows CentOS. I found out from Google that CentOS seems to use RPM packages. Why don't you try to locate an RRDtool RPM for CentOS and try to use that? > How could I install them to a directory Munin.pm looks > at? What is the easiest way to get it work? The easiest way is to use ready-made packages. I would like to advise you that you should use a more common platform. When you use an exotic one like CentOS, you should be able to help yourself. If you can't it's probably better to ask people who know the platform. I've never met anybody who uses CentOS. I could help you with Debian, Ubuntu, SuSE Linux or Red Hat. Or Solaris and FreeBSD. But then, you could probably install RRDtool and Munin on all of those without running a single make command. Sorry about this. Lupe Christoph PS: One last hint. Have you ever tried to answer the question why the linker can't find librrd.so.2? -- | You know we're sitting on four million pounds of fuel, one nuclear | | weapon and a thing that has 270,000 moving parts built by the lowest | | bidder. Makes you feel good, doesn't it? | | Rockhound in "Armageddon", 1998, about the Space Shuttle | ------------------------------------------------------------------------- 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> |
|---|---|---|
| Previous by Date: | Re: Can't locate RRDs.pm or HTML/Template.pm: 00060, Victor |
|---|---|
| Next by Date: | Re: Can't locate RRDs.pm or HTML/Template.pm: 00060, Vincent Rivellino |
| Previous by Thread: | Re: Can't locate RRDs.pm or HTML/Template.pmi: 00060, Victor |
| Next by Thread: | Re: Can't locate RRDs.pm or HTML/Template.pm: 00060, Vincent Rivellino |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |