amavis-stats 0.1.22 cannot find RRDs/RRDp perl modules

I've tried to install amavis-stats 0.1.22 and had many problems during the process. Most of them could be overcome but now I'm stuck.

I've successfully installed the prerequisites like rrdtool 1.2.15 (including the rrdtool perl module with make site-perl-install).

I've also managed to get amavis-stats 0.1.22 to compile and install fine. No errors thrown at me anymore.

When checking if amavis-stats works it doesn't seem to find the rrdtool perl modules. I've checked cpan to install them manually but still they cannot be found, though I'm quite sure they are there.

xserve:~ root# /usr/sbin/amavis-stats --version ERROR: MISSING REQUIRED BASIC MODULES:         RRDp         RRDs BEGIN failed--compilation aborted at /usr/sbin/amavis-stats line 63.


I've read all the README and INSTALL and INSTALL.OSX files, as well as googled the whole series of tubes that are out there, including:
OS X Topicdesk
RRDtool Documentation
Rekudos amavis-stats Fora
and of course every thread on the topic I could find here on Apple discussions.

Intended target: make amavis-stats find the RRDp/RRDs perl modules and get it to graph beautiful stats of an Xserve killing Spam. 🙂

Of course I'll be happy to provide any config or log you may need to help.

Best Regards
MacLemon

PowerBook G4 - PowerPC forever! Mac OS X (10.4.7) Recommended Reading: http://en.wikipedia.org/wiki/Netiquette

Posted on Dec 4, 2006 5:47 AM

Reply
4 replies

Dec 4, 2006 11:58 AM in response to MacLemon

A couple of things.

First, while I have adopted the amavis-stats project, the [url href="http://rekudos.net/amavis-stats/"]Rekudos amavis-stats Fora[/url] isn't a good reference of information becuase the program has changed drastically and barely resembles the original code.

It's no longer a script that runs under a cron job but is now a daemon making better use of available resources.

Second, while this might not affect you and doesn't relate to your current issue, I had inserted a comment in the source for version testing that I forgot to remove so you'll want to download the source again.

Third, I have no clue how you built RRDTool and more than likely, while it built OK, it may not have installed things in the proper location so we need to get some info to figure out.

Post the following results: (hopefully you didn't remove them)
head config.log; # in amavis-stats-0.1.22 source directory.
head config.log; # in rrdtool-1.2.15 source directory.
find /System/Library/Perl -name RRDs.pm; # find the modules if they are instaled.

Unfortunately, I haven't found any decent documentation for building RRDTool on OSX but I have some additional knowledge on how RRDTool builds becuase I have supplied source code to the project so I am able to build it to work properly in OS X and OS XS.

Forth, while I have rewritten the main application and the PHP scripts, I'm not very fluent with using rrdtool so the graphs suffer an inaccuracy detail related to the graphs reference scale of e-mail processed per hour/mins (the acutal numbers processed is correct) that has carried over from Mark's original code and no one with any rrdtool knowledge/experience has offered to assist in fixing it.

For increased functionality and speed, I have included an experimental build for the PHP rrdtool module that I wrote that you might wish to enable when you build the source if you don't currently have it in your PHP build.

I just recently built it along with the GD module without instaling a newer version of PHP and using the apple supplied PHP that seems to work properly.

The only requirement is that your ENV PATHS include the path to the bin directory for the php-config file of the version of PHP you are building for.

B&W G3 400 ~ Dual 1GHz G4 ~ Dual 2GHz G5 ~ Dual 3GHz MacPro Mac OS X (10.4.8)

Dec 5, 2006 9:22 AM in response to Dale Walsh

Hi Dave and thanks for joining this discussion!

I am aware that Rekudos have abandoned amavis-stats in favor of parselog. Their fora still helped a little with building the prerequisites, which I agree are not the most easy to build on Mac OS X.

I've redownloaded your amavis-stats 0.1.22 version dates Nov 25th again today and tried rebuilding. As expected this did not resolve the problem. I guess it lies with the rrdtool install of mine.

Here are the infos you requested:

Config Options of amavis-stats 0.1.22:
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --prefix=/usr --localstatedir=/var --mandir=/usr/share/man --sysconfdir=/etc --enable-startup


Config Options of rrdtool 1.2.15:
It was created by rrdtool configure 1.2.15, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --enable-shared --disable-static --disable-python


I could not find RRDs in /System/Library/Perl but in /Library/Perl/5.8.6/Log/Log4perl/Appender/RRDs.pm. I've tried symlinking this RRDs.pm to The like named location in /System/Library which did not help either.

As for rrdtool usage I consider myself a total noob with increased implied danger of newbieness, as I have knowledge on how to really turn a system belly up. If possible I'd like to defer the building of PHP with rrdtool module to a later date.


Couldn't post earlier due to Discussion's downtime, I still don't want to dump the posting I've prepared.
I've just seen that you have started a special Installation Guide Thread. Thanks for that one, I'll work that one through. 🙂

Regards
MacLemon

PowerBook G4 - PowerPC forever! Mac OS X (10.4.7) Recommended Reading: http://en.wikipedia.org/wiki/Netiquette

Dec 5, 2006 1:00 PM in response to MacLemon

Hi Dave and thanks for joining this discussion!


Who's Dave?

I am aware that Rekudos have abandoned amavis-stats
in favor of parselog. Their fora still helped a
little with building the prerequisites, which I agree
are not the most easy to build on Mac OS X.

I've redownloaded your amavis-stats 0.1.22 version
dates Nov 25th again today and tried rebuilding. As
expected this did not resolve the problem. I guess it
lies with the rrdtool install of mine.

Here are the infos you requested:

Config Options of amavis-stats 0.1.22:
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command
line was

$ ./configure --prefix=/usr --localstatedir=/var
--mandir=/usr/share/man --sysconfdir=/etc
--enable-startup


Config Options of rrdtool 1.2.15:
It was created by rrdtool configure 1.2.15, which
was
generated by GNU Autoconf 2.59. Invocation command
line was

$ ./configure --enable-shared --disable-static
--disable-python


try this: ( verbatim )
<pre>su; # become root

./configure --prefix=/usr/local/rrdtool-1.2.15 --enable-static --disable-shared --disable-python --with-perl-options="INSTALLDIRS=site INSTALLSITEARCH=/System/Library/Perl/5.8.6/darwin-thread-multi-2level INSTALLSITELIB=/System/Library/Perl/5.8.6 PREFIX=/ INSTALLSITEMAN1DIR=/usr/share/man/man1 INSTALLSITEMAN3DIR=/usr/share/man/man3

make

make install

make site-perl-install

(cd /usr/local && ln -shf rrdtool-1.2.15 rrdtool)

find /System/Library/Perl -name RRDs.pm

exit; # un-become root</pre>

I could not find RRDs in /System/Library/Perl but in
/Library/Perl/5.8.6/Log/Log4perl/Appender/RRDs.pm.
I've tried symlinking this RRDs.pm to The like named
location in /System/Library which did not help
either.


Remove those symlinks before building rrdtool.

As for rrdtool usage I consider myself a total noob
with increased implied danger of newbieness, as I
have knowledge on how to really turn a system belly
up. If possible I'd like to defer the building of PHP
with rrdtool module to a later date.


PHP itself doesn't need to be rebuilt, you can build the PHP rrdtool module as a loadable module from within the amavis-stats source, if you need GD, the referenced post explains the process of making it a loadable module if you prefer to stick with apple provided software.

Couldn't post earlier due to Discussion's downtime, I
still don't want to dump the posting I've prepared.
I've just seen that you have started a special
Installation Guide
Thread
. Thanks for that one, I'll work that
one through. 🙂

Regards
MacLemon

PowerBook G4 -
PowerPC forever! Mac OS X (10.4.7) Recommended
Reading:
http://en.wikipedia.org/wiki/Netiquette

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

amavis-stats 0.1.22 cannot find RRDs/RRDp perl modules

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.