<HTML>
<HEAD>
<TITLE>Re: [mrtg] Installing RRDTool on Solaris 10 from source code(tar ball)--rrdtool 1.2.28</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Looks like you’re missing a dependency:<BR>
<a href="http://www.perl.com/doc/manual/html/utils/pod2man.html">http://www.perl.com/doc/manual/html/utils/pod2man.html</a><BR>
<BR>
<BR>
<BR>
On 9/5/08 2:59 PM, "anjini shukla" <anjinishukla@gmail.com> wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Can someone explain me this error..? and what should be done to remove it<BR>
<BR>
creating rrdcgi<BR>
Making all in doc<BR>
pod2man --release=1.2.28 --center=rrdtool bin_dec_hex.pod > bin_dec_hex.1<BR>
<B>bash: pod2man: command not found<BR>
*** Error code 127<BR>
</B>make: Fatal error: Command failed for target `bin_dec_hex.1'<BR>
Current working directory /export/home/anshukla/download/rrdtool-1.2.28/doc<BR>
*** Error code 1<BR>
<BR>
<BR>
Thanks,<BR>
Anjini<BR>
<BR>
<BR>
On Fri, Sep 5, 2008 at 10:26 AM, anjini shukla <anjinishukla@gmail.com> wrote:<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I tried to install rrdtool 1.2.28, after reading that sun studio 11bugs are fixed on this version <https://lists.oetiker.ch/pipermail/rrd-announce/2008-July/000111.html> and am still getting these errors:<BR>
<BR>
Using /usr/ucb/cc<BR>
<B>/usr/ucb/cc: language optional software package not installed<BR>
*** Error code 1<BR>
make: Fatal error: Command failed for target `RRDs.o'<BR>
<BR>
</B>using /usr/local/bin/gcc<BR>
<BR>
<BR>
cc: unrecognized option `-KPIC'<BR>
cc: language ildoff not recognized<BR>
cc: RRDs.c: linker input file unused because linking not done<BR>
Running Mkbootstrap for RRDs ()<BR>
chmod 644 RRDs.bs<BR>
rm -f blib/arch/auto/RRDs/RRDs.so<BR>
LD_RUN_PATH="/usr/lib" cc -G RRDs.o -L../../src/.libs/ -R/usr/local/rrdtool-1.2.28/<BR>
lib -lrrd -o blib/arch/auto/RRDs/RRDs.so -lm -lz<BR>
cc: RRDs.o: No such file or directory<BR>
*** Error code 1<BR>
<BR>
<BR>
what should I be doing..?<BR>
<BR>
Thanks,<BR>
Anjini<BR>
<BR>
<BR>
On Thu, Sep 4, 2008 at 5:14 PM, anjini shukla <anjinishukla@gmail.com> wrote:<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello all,<BR>
I am trying to install rrd from the tar ball, when i run the command make:<BR>
<BR>
Checking if your kit is complete...<BR>
Looks good<BR>
Writing Makefile for RRDs<BR>
cd perl-shared && make<BR>
cp RRDs.pm blib/lib/RRDs.pm<BR>
cp ntmake.pl blib/lib/ntmake.pl<BR>
/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 <BR>
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<BR>
<B>cc: unrecognized option `-KPIC'<BR>
</B>cc: language ildoff not recognized<BR>
<BR>
<BR>
I tried the following things, <BR>
ln -s /usr/local/bin/gcc /usr/ucb/cc<BR>
<BR>
CC=gcc<BR>
export CC<BR>
<BR>
vi Makefile: LDFLAGS = gcc<BR>
<BR>
is there any quick fix for this..? <BR>
<BR>
Thanks,<BR>
Anjini<BR>
<BR>
<BR>
On Thu, Sep 4, 2008 at 4:29 PM, Steve Shipway <s.shipway@auckland.ac.nz> wrote:<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>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.<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>I've just examined the rrdtool package as distributed by sunfreeware, and it contains:<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 d none rrdtool-1.2.19/lib/perl 0755 bin bin<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 d none rrdtool-1.2.19/lib/perl/5.8.7 0755 bin bin<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 f none rrdtool-1.2.19/lib/perl/5.8.7/RRDp.pm 0444 bin bin 5045 15643 1174804915<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris 0755 bin bin<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/RRDs.pm 0444 bin bin 3847 59052 1174804915<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto 0755 bin bin<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 d none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDp 0755 bin bin<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/auto/RRDp/.packlist 0644 bin bin 97 7916 1174804915<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/ntmake.pl 0444 bin bin 121530114 1174804915<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>1 f none rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/perllocal.pod 0644 bin bin 684 48533 1174804915<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>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.<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>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.<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>I've never actually installed this package under solaris10 so I hadn't spotted the error in it before.<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT COLOR="#888888"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Steve<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'>I added these lines to my mrtg.cfg<BR>
<BR>
<B>PathAdd: /usr/local/rrdtool-1.2.19/bin<BR>
LibAdd: /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/<BR>
LogFormat: rrdtool<BR>
</B><BR>
and got the error::<BR>
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<BR>
Compilation failed in require at /usr/local/mrtg-2/bin/mrtg line 342<BR>
<BR>
<BR>
</SPAN></FONT></FONT><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE>
</BODY>
</HTML>