Hello all, I am trying to install rrd from the tar ball, when i run the command make:
Checking if your kit is complete... Looks good Writing Makefile for RRDs cd perl-shared && make cp RRDs.pm blib/lib/RRDs.pm cp ntmake.pl blib/lib/ntmake.pl /bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv RRDs.xsc RRDs.c cc -c -I../../src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.2019\" -DXS_VERSION=\"1.2019\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DPERLPATCHLEVEL=8 RRDs.c *cc: unrecognized option `-KPIC'* cc: language ildoff not recognized I tried the following things, ln -s /usr/local/bin/gcc /usr/ucb/cc CC=gcc export CC vi Makefile: LDFLAGS = gcc is there any quick fix for this..? Thanks, Anjini On Thu, Sep 4, 2008 at 4:29 PM, Steve Shipway <[EMAIL PROTECTED]>wrote: > This error message is telling you that MRTG is not able to find the > RRDs.so part (the loadable object module) of the RRDs.pm module. > > > > I've just examined the rrdtool package as distributed by sunfreeware, and > it contains: > > > > 1 d none rrdtool-1.2.19/lib/perl 0755 bin bin > > 1 d none rrdtool-1.2.19/lib/perl/5.8.7 0755 bin bin > > 1 f none rrdtool-1.2.19/lib/perl/5.8.7/RRDp.pm 0444 bin bin 5045 15643 > 1174804915 > > 1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris 0755 bin bin > > 1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/RRDs.pm 0444 bin bin > 3847 59052 1174804915 > > 1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto 0755 bin bin > > 1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDp 0755 bin bin > > 1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDp/.packlist > 0644 bin bin 97 7916 1174804915 > > 1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/ntmake.pl 0444 bin bin > 121530114 1174804915 > > 1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/perllocal.pod 0644 bin > bin 684 48533 1174804915 > > > > This shows it is MISSING the > rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDs directory and > contents! In other words, the package as distributed by sunfreeware is > incorrect and not created right. It has the perl library RRDs.pm but not > the object module it depends on. In other words, its useless if you want to > use the RRDs perl library, although the rrdtool executable will be just > fine. > > > > Sadly, in this case, the only course of action is to compile it yourself > from source code, and install. If I get the chance I might be able to try > and create the missing file > rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDs/RRDs.so (and RRDs.bs) > on our system and make it available, but its awkward because it requires > compilation with exactly the same parameters to be compatible. > > > > I've never actually installed this package under solaris10 so I hadn't > spotted the error in it before. > > > > Steve > > I added these lines to my mrtg.cfg > > *PathAdd: /usr/local/rrdtool-1.2.19/bin > LibAdd: /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/ > LogFormat: rrdtool* > > and got the error:: > Can't locate loadable object for module RRDs in @INC (@INC contains: > /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/ > /usr/local/mrtg-2/bin/../lib/mrtg2 /usr/local/mrtg-2/bin > /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib > /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 > /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int > /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at > /usr/local/mrtg-2/bin/mrtg line 342 > Compilation failed in require at /usr/local/mrtg-2/bin/mrtg line 342 > > > >
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
